Use lookbehind or advanced features through PCRE2 mode.
Section: grep, egrep, and ripgrep
ripgrep with PCRE2
bash
bash
rg -n -P '(?<=ERROR: ).+' app.logExplanation
`-P` enables PCRE2 for advanced constructs.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing grep, egrep, and ripgrep