cheatsheet/rg

オプション

説明コマンド
隠しディレクトリも検索–hidden
正規表現としない-F, –fixed-strings
単語とみなす。 /\b(?:foo)\b/-w, –word-regexp
大小文字を区別しない。 /foo/i-i, –ignore-case
大小文字を区別する。 /foo/-s, –case-sensitive
小文字なら /foo/i で大文字が含まれるなら /Foo/-S, –smart-case
1行分マッチさせる。 foo は /^foo$/-x, –line-regexp
複数行にまたがれる。 a\nb には a\nb でマッチする-U, –multiline
-U と合わせて指定すると a\nb に a.b でマッチする–multiline-dotall