Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: First wordby cdarke (Prior) |
on Apr 24, 2008 at 12:26 UTC ( [id://682619]=note: print w/replies, xml ) | Need Help?? |
I know that \w would be the regex for a 'word' I suppose that depends on what you mean by a 'word'. \w is [A-Za-z0-9_], it includes numerics and the underscore. As noted, \b is a word boundary, although sometimes matches in unexpected places like apostrophies - "Clive's house" will appear to be 3 words.
In Section
Seekers of Perl Wisdom
|
|