bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Tr: Problem with grep v2.5.1


From: Paul Jarc
Subject: Re: Tr: Problem with grep v2.5.1
Date: Fri, 18 May 2007 17:50:09 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

Micah Cowan <address@hidden> wrote:
> Paul Jarc wrote:
>> grep -E -B 3 '\.\.\.([013-9][0-9]{2}|2[1-9][0-9]|20[1-9])'
>
> You're using -E, so it should be "..." rather than "\.\.\."

No, -E doesn't change the meaning of "\.".

> Won't this approach have /exactly/ the same behavior?

No.  It matches "..." followed by a three-digit number other than 200,
and also includes the previous 3 lines.  Try it.


paul




reply via email to

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