For a while I was baffled by *vi regular expressions, but turns out they are powerfulhttps://vi.stackexchange.com/a/2279
What are you missing from EREs in ripgrep? The default regex in ripgrep is very close to EREs. BREs don't really give you much more power (other than backrefs, which you can get with -P/--pcre2), but they are sometimes more convenient to type because escaping rules are different.
-
-
Hey! Thanks for the question! I use ripgrep directly from the command line and never from scripts, so usually when I type ( I mean a literal (, and not a group, and so on. I use Neovim, and when I switch back to ripgrep I have to remember to switch the regex syntax
-
That's BREs though. I know the benefits there. :-) But you also mentioned EREs. What are you missing there? (Parens need to be escaped in EREs.)
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
