string literal with parentheses (t) is not matched #1621
-
What version of ripgrep are you using?ripgrep 12.1.1 How did you install ripgrep?with yay (pacman) from AUR What operating system are you using ripgrep on?Manjaro Linux with the 5.7.0 kernel Describe your bug.No literal match for pattern with parentheses What are the steps to reproduce the behavior?Create a text file with the content "row_to_json(t)", call it "test_file" will match the line: will not match the line (note the parentheses) What is the actual behavior?
e.g. no output What is the expected behavior?It should have matched the line & returned it with a line number. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Only because it uses BRE ( The syntax is described here: https://docs.rs/regex/*/regex/#syntax Basically you should do either |
Beta Was this translation helpful? Give feedback.
Only because it uses BRE (
grep -G
) by default.rg
's regex syntax is similar to PCRE (grep -P
) or even ERE (grep -E
)The syntax is described here: https://docs.rs/regex/*/regex/#syntax
Basically you should do either
rg 'row_to_json\(t\)'
orrg -F 'row_to_json(t)'