[Noob] How to search urls? #2788
-
Noob question: how to search urls?
doesn't produce but replacing with Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The correct thing to do here, whether it's grep or ripgrep, is to use the |
Beta Was this translation helpful? Give feedback.
grep
uses BREs by default, where things like?
aren't treated as special meta characters by default. Instead, you have to do\?
. In contrast, ripgrep is closer togrep -E
by default, where I imagine you'd get the same result as ripgrep here.The correct thing to do here, whether it's grep or ripgrep, is to use the
-F/--fixed-literals
flag. That will treat the pattern as literal text completely.