bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lowercase letters for binaries


From: Julian Foad
Subject: Re: lowercase letters for binaries
Date: Tue, 08 Nov 2005 19:45:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Charles Levert wrote:
* On Monday 2005-11-07 at 21:40:49 +0100, Benno Schulenberg wrote:

So maybe the following is a better text for 'info grep usage':

13. Why is this back-reference failing?

       echo "ba" | egrep '(a)\1|b\1'

   This gives no output, because the first alternate '(a)\1' does
   not match, as there is no "aa" in the input, so the '\1' in the
   second alternate has nothing to refer back to, meaning it will
   never match anything.  (The second alternate in this example
   can only match if the first alternate has matched -- making
   the second one superfluous.)

I like it.

Me too, so I've committed it, along with your tweak to example 14.  Thanks, 
Benno.

- Julian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]