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

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Fri Jan 2 18:03:17 UTC 2004


Can you post an example (short) so we can compile and test whether it
works here ?

Peter

On Thu, 1 Jan 2004, William Park wrote:

> I'm getting wierd results from GNU regcomp(3) and regexec(3).  I can
> only match letters and underscore with '\w', ie. '[A-Za-z_]'  It doesn't
> seem to match numbers.
>
> According to egrep(1), '\w' is letters, numbers, and underscore; and,
> 'egrep' does work properly.
>
> Am I missing something?
>     - glibc-2.3.2, gcc-3.2.3, Slackware-9.1
> --
> 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
>
>
--
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