pattern string escape all the string. #2545
Answered
by
BurntSushi
jianhe-fun
asked this question in
General
-
in postgres, you can $$ this is your string $$. in regex there are so many special characters. Would be better to escape it once for all. |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Jun 28, 2023
Replies: 1 comment 4 replies
-
Yes. The |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
BurntSushi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. The
-F/--fixed-strings
flag. For example,rg -F '+'
is equivalent torg '\+'
.