3 ms·
ag has PCRE enabled by default. That's why I prefer it over ripgrep.
by hwj 8y ago
ag has PCRE enabled by default. That's why I prefer it over ripgrep.
- burntsushi 8y agoYou might already know this, but the current release of ripgrep has support for PCRE2 (as opposed to PCRE1 in ag). All you need to do is pass the -P flag. If you want it enabled by default, then: echo -P > $HOME/.ripgreprc and add this to your .bashrc or equivalent: export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"