GNU regcomp(3), regexec(3): '\w'

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Sun Jan 4 22:29:39 UTC 2004


On Sun, 4 Jan 2004, William Park wrote:

> On Sun, Jan 04, 2004 at 11:19:43PM +0200, Peter L. Peres wrote:
> >
> > William, did you try to compile using -DUSE_GNU_SOURCE -Wall ?
>
> Yes, and the result is the same.  Funny thing is... 'egrep' gives
> conflicting results.  Eg.
>     $ echo abc_123 | egrep -o '\w+'
>     abc_
>     $ echo abc_123 | egrep -o '\W+'

This is really weird. Are you using the new Slackware distro ? (9.0 or
what it was ?)

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list