buggrep - Bugs: bug #16092, grep -P match error

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #16092: grep -P match error

Submitted by:  None
Submitted on:  Tue 14 Mar 2006 10:37:36 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 04 Dec 2009 07:53:59 PM UTC, comment #1:

Works for me, likely a PCRE issue.

Paolo Bonzini <bonzini>
Tue 14 Mar 2006 10:37:36 PM UTC, original submission:

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
^Z
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.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bonzini (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Dec 2009 07:53:59 PM UTCbonziniOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1