On Wed, Mar 23, 2005 at 06:12:00PM -0600, Gabriel Sechan wrote:
> 
> 
> >From: Lan Barnes <[EMAIL PROTECTED]>
> >
> >Um ... \w means word char [A-Za-z0-0etc] and \s means white space.
> >
> Doh!  thats what I get for not checking first, haven't written one of those 
> in 2 years.  Anything else wrong?
> 
> Gabe

Dunno. Didn't look too closely.

I find \w problematic. I think it's meant to match legal chars in C
token names. I usually find it better to define my own char sets. \s and
its inverse, \S are much more reliable.

I can't recall having Brian's problem of greediness of \s past EOLN, but
I usually use ^ and $ as anchors if I get a block of input, and usually
get line input when I can.

-- 
Lan Barnes                    [EMAIL PROTECTED]
Linux Guy, SCM Specialist     858-354-0616
-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to