Subject: strange regex \W and manual bug
To: None <current-users@netbsd.org>
From: Caffeinate The World <mochaexpress@yahoo.com>
List: current-users
Date: 04/22/2003 03:02:45
man egrep:
---
The period . matches any single character. The symbol \w
is a synonym for [[:alnum:]] and \W is a synonym for
[^[:alnum]].
---
First manual bug: [^[:alnum]] should be [^[:alnum:]]
Second test \W per paragraph above:
---
# egrep [\W] -
1
2
!
#
W
W
W
W
---
It's matching a W instead of any non-alphanum.
---
Thomas T. Thai
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com