On Wed, Aug 5, 2026 at 12:08 AM Dan Jacobson <[email protected]> wrote:

> retitle 81546 Document grep coloring only part of the matching string
> thanks
>
> Hey that's excellent, Carlo.
> OK, let's hope they add this as an example to the INFO document!
> >>>>> "CA" == Carlo Arenas <[email protected]> writes:
> CA> Since you are already using PCRE, why not convert your first not
> CA> saving group into a lookbehind assertion so it is not included on the
> CA> match?
>
> CA>   '(?<=id=")[^"]+'


Thanks to both of you.
Done via the just-pushed
https://cgit.git.savannah.gnu.org/cgit/grep.git/commit/?id=79da8e07613966b9e53c7ef31b4765d39f98044d
(but this cgit host lags a bit, so that URL isn't immediately accessible)

Reply via email to