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

Chris F.A. Johnson c.f.a.johnson-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Sun Jan 4 22:48:40 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+'
>
> One should be inverse of the other.

  Mandrake 9.0 and 9.2:

$ echo abc_123 | egrep -o '\w+'
abc_123
$ echo abc_123 | egrep -o '\W+'
$

-- 
	Chris F.A. Johnson
	=================================================================
	cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org                      http://cfaj.freeshell.org
--
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