GNU bug report logs - #62745
Color only capture group

Previous Next

Package: grep;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Mon, 10 Apr 2023 06:57:02 UTC

Severity: normal

Full log


Message #8 received at 62745 <at> debbugs.gnu.org (full text, mbox):

From: Carlo Arenas <carenas <at> gmail.com>
To: Dan Jacobson <jidanni <at> jidanni.org>
Cc: 62745 <at> debbugs.gnu.org
Subject: Re: bug#62745: Color only capture group
Date: Tue, 11 Apr 2023 23:51:34 -0700
You can do that already with PCRE2 and a lookbehind:

  echo abcedc|ggrep --color -P '(?=b)c'




This bug report was last modified 2 years and 67 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.