mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-31 20:21:59 -07:00
Note -e/--regexp's additional usefulness.
Specifically, it can be used when searching for patterns that start with a dash. Fixes #215
This commit is contained in:
@@ -35,7 +35,8 @@ the raw speed of grep.
|
|||||||
|
|
||||||
-e, --regexp *PATTERN* ...
|
-e, --regexp *PATTERN* ...
|
||||||
: Use PATTERN to search. This option can be provided multiple times, where all
|
: Use PATTERN to search. This option can be provided multiple times, where all
|
||||||
patterns given are searched.
|
patterns given are searched. This is also useful when searching for patterns
|
||||||
|
that start with a dash.
|
||||||
|
|
||||||
-F, --fixed-strings
|
-F, --fixed-strings
|
||||||
: Treat the pattern as a literal string instead of a regular expression.
|
: Treat the pattern as a literal string instead of a regular expression.
|
||||||
|
@@ -48,7 +48,8 @@ Common options:
|
|||||||
[default: auto]
|
[default: auto]
|
||||||
-e, --regexp PATTERN ... Use PATTERN to search. This option can be
|
-e, --regexp PATTERN ... Use PATTERN to search. This option can be
|
||||||
provided multiple times, where all patterns
|
provided multiple times, where all patterns
|
||||||
given are searched.
|
given are searched. This is also useful when
|
||||||
|
searching for a pattern that starts with a dash.
|
||||||
-F, --fixed-strings Treat the pattern as a literal string instead of
|
-F, --fixed-strings Treat the pattern as a literal string instead of
|
||||||
a regular expression.
|
a regular expression.
|
||||||
-g, --glob GLOB ... Include or exclude files for searching that
|
-g, --glob GLOB ... Include or exclude files for searching that
|
||||||
|
Reference in New Issue
Block a user