Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: First word

by cdarke (Prior)
on Apr 24, 2008 at 12:26 UTC ( [id://682619]=note: print w/replies, xml ) Need Help??


in reply to First word

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://682619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-19 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found