Skip to content

Commit 9b01a8f

Browse files
doc: add -F/--fixed-strings to "common options"
BurntSushi#607 is the top result for the search "ripgrep disable regex". I think it makes sense to add it to the user guide, since it's a very useful flag. PR BurntSushi#1945
1 parent 0ff5dd2 commit 9b01a8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GUIDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,8 @@ used options that will likely impact how you use ripgrep on a regular basis.
992992
* `-S/--smart-case`: This is similar to `--ignore-case`, but disables itself
993993
if the pattern contains any uppercase letters. Usually this flag is put into
994994
alias or a config file.
995+
* `-F/--fixed-strings`: Disable regular expression matching and treat the pattern
996+
as a literal string.
995997
* `-w/--word-regexp`: Require that all matches of the pattern be surrounded
996998
by word boundaries. That is, given `pattern`, the `--word-regexp` flag will
997999
cause ripgrep to behave as if `pattern` were actually `\b(?:pattern)\b`.

0 commit comments

Comments
 (0)