[Top][All Lists]

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

[bug #16092] grep -P match error

From: anonymous
Subject: [bug #16092] grep -P match error
Date: Tue, 14 Mar 2006 22:37:38 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)


                 Summary: grep -P match error
                 Project: grep
            Submitted by: None
            Submitted on: Tue 03/14/06 at 22:37
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open



winxp pro w/ sp2, gnu grep 2.5.1a with pcre 5.0 (per dependencies package):
   cat | grep -P "(?<=2 ).*$"
with input lines:
2 should match
3 shouldn't match
doesn't match line "2 should match" while it should.
Identical input fed to pcregrep from gnu-win32 package pcre version 6.1 with
pcre3.dll 6.1 works OK, i.e. line "2 should match" is matched.
Incidentally, I need to use -P -o (output matched pattern only), in which
case I expect the output to be "should match", that is the "2 " positive
look-behind should be discarded from the output match.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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