bug-gnu-utils
[Top][All Lists]
Advanced

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

Egrep does not support \A, \Z, \s


From: David Grayson
Subject: Egrep does not support \A, \Z, \s
Date: Fri, 1 Jul 2005 21:38:59 -0500

I have GNU grep version 2.5 for linux.
 
It seems like it does not support regular expressions properly because
it does not recognize slash characters.  In particular, the following
commands produce no output:

echo "hi" | egrep "\Ah"
echo "hi | egrep "i\Z"
echo "h i" | egrep "\s"

Maybe this isn't grep's fault.  Is there a dynamically linked, shared
library that does regular expression matching that I need to update?

(But on my computer, other features work like:
echo "apple" | egrep "apple|orange"   )


Thanks, and keep up the good work!
 
--David Grayson




reply via email to

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