Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
シルバーサーチャーで、複数の特定の拡張子を持つファイルを無視するにはどうすればよいですか? たとえば、私は試しました:
$ ag --ignore '*.js|*.txt' 'foobar'
これは機能しません。「.agignore」ファイルは必要ありません。
これ
'*.js|*.txt' 'foobar'
1 つのパターンに組み合わせることができます。
(\.(js|txt)$)|^foobar$
シェル パターンでは、これらの文字の一部をエスケープする必要がある場合があります。
PCRE デモ