New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unrecognized escape sequence: '\/' #434
Comments
I suspect it is because |
Ah, looks like you are right.
|
In case anyone else lands on this: the underlying regex library is indeed to blame for this. The regex library is paranoid about which escape sequences it accepts so that additional escape sequences can be added in the future in a backwards compatible way. With that said, permitting escape sequences like |
I'm mixed on this thread. On one hand I enjoy not needing to escape things while doing regex with this beloved tool... but on the other, it'd make doing silly things like this...
...able to use the same regex in both |
@blindside85 You may find the |
`/` is commonly used in paths and requires escaping in `sed` but not in `rg` which makes using it tricky (BurntSushi/ripgrep#434).
This works
but this fails
The text was updated successfully, but these errors were encountered: