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

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Sun Jan 4 22:04:38 UTC 2004


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+'

One should be inverse of the other.

-- 
William Park, Open Geometry Consulting, <opengeometry-FFYn/CNdgSA at public.gmane.org>
Linux solution for data management and processing. 
--
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