Skip to content

Commit

Permalink
doc: add -F/--fixed-strings to "common options"
Browse files Browse the repository at this point in the history
#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 #1945
  • Loading branch information
LordFlashmeow authored Jul 22, 2021
1 parent 0ff5dd2 commit 9b01a8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,8 @@ used options that will likely impact how you use ripgrep on a regular basis.
* `-S/--smart-case`: This is similar to `--ignore-case`, but disables itself
if the pattern contains any uppercase letters. Usually this flag is put into
alias or a config file.
* `-F/--fixed-strings`: Disable regular expression matching and treat the pattern
as a literal string.
* `-w/--word-regexp`: Require that all matches of the pattern be surrounded
by word boundaries. That is, given `pattern`, the `--word-regexp` flag will
cause ripgrep to behave as if `pattern` were actually `\b(?:pattern)\b`.
Expand Down

0 comments on commit 9b01a8f

Please sign in to comment.