Closed simonw closed 4 years ago
Suggested here: https://news.ycombinator.com/item?id=25237299
https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md says:
(Note: We escape the ( here because ( has special significance inside regular expressions. You could also use rg -F 'fn write(' to achieve the same thing, where -F interprets your pattern as a literal string instead of a regular expression.)
(
rg -F 'fn write('
-F
Demo: https://ripgrep.datasette.io/-/ripgrep?pattern=.plugin_config%28&literal=on
Suggested here: https://news.ycombinator.com/item?id=25237299
https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md says: