You can do that already with PCRE2 and a lookbehind: echo abcedc|ggrep --color -P '(?=b)c'
- bug#62745: Color only capture group Dan Jacobson
- bug#62745: Color only capture group Carlo Arenas
- bug#62745: Color only capture group Carlo Arenas
- bug#62745: Color only capture group Dan Jacobson