URL:
<http://savannah.gnu.org/bugs/?27460>
Summary: --perl-regexp \z\Z not available, only $
Project: grep
Submitted by: None
Submitted on: Wed 16 Sep 2009 02:32:59 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
perl has \z\Z
pcre has \z\Z
but grep -P doesn't support \Z
$ grep -V
GNU grep 2.5.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ cat test
aba
abe
$ grep -P 'a\Z' test
$ grep -P 'a\z' test
$ grep -P 'a$' test
aba
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27460>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/