summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDash <33206210+LordFlashmeow@users.noreply.github.com>2021-07-21 17:52:25 -0700
committerGitHub <noreply@github.com>2021-07-21 20:52:25 -0400
commit9b01a8f9ae53ebcd05c27ec21843758c2c1e823f (patch)
tree3358ea4f140697e7304625e054f3889409206672
parent0ff5dd23606ee1e006a38ac7d18afcc4c368d9a4 (diff)
doc: add -F/--fixed-strings to "common options"
#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
-rw-r--r--GUIDE.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/GUIDE.md b/GUIDE.md
index c560e28f..8b4dfd1e 100644
--- a/GUIDE.md
+++ b/GUIDE.md
@@ -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`.