3 ms·
If you don't mind using PCRE, you can do it. For example: rg -P '(?=.*pat1)(?=.*pat2)(?=.*pat3)' You could create a shell function shortcut if you need to
by asicsp 3y ago
If you don't mind using PCRE, you can do it. For example:
rg -P '(?=.*pat1)(?=.*pat2)(?=.*pat3)'
You could create a shell function shortcut if you need to use it often. But yeah, having it as a feature of the tool itself would be nice.