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

Submitter:  None
Submitted:  Tue 14 Mar 2006 10:37:36 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-04 bonzini Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code