bug-grep
[Top][All Lists]
Advanced

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

bug#22655: grep -Pz '^' now fails!


From: Paul Eggert
Subject: bug#22655: grep -Pz '^' now fails!
Date: Sat, 19 Nov 2016 15:12:41 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

Aaron Crane wrote:
I'm not sure it's ideal to use the Perl documentation as
a comprehensive guide to PCRE:

Unfortunately libpcre does not document the regular expression syntax it supports. Neither does the grep manual, for 'grep -P'. And as you've mentioned, the Perl manual isn't a reliable source for libpcre either. So users of 'grep -P' cannot rely on any documentation for behavior; it's an unwritten tradition instead.

Long ago when a friend told me "When you're telling someone else where you plan to throw the Frisbee, don't say anything more specific than 'Watch this!'" That's 'grep -P' in a nutshell.





reply via email to

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