2 ms·
Ah yes! That is a good one too. That's because grep uses "basic" regexes by default, and this sort of use case is one area where they work nicely. The downside
by burntsushi 8y ago
Ah yes! That is a good one too. That's because grep uses "basic" regexes by default, and this sort of use case is one area where they work nicely. The downside is needing to remember which meta characters need to be escaped.
For ripgrep, you can enable literal search the same way you do it in grep: with the -F flag.
Thanks for responding!