Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: extracting words with certain characters

by ColonelPanic (Friar)
on Dec 04, 2012 at 11:00 UTC ( #1007061=note: print w/replies, xml ) Need Help??


in reply to Re: extracting words with certain characters
in thread extracting words with certain characters

Note: this will match "words" containing anything that is not whitespace. This may or may not be what you want. For example, should this be two different words?

word_1,word_2

If so, you could use a regex that matches a more traditional definition of a word:

/(\w*_\w*)/g

\w matches "word characters": alphanumeric characters plus underscores.



When's the last time you used duct tape on a duct? --Larry Wall

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007061]
help
Chatterbox?
[choroba]: BTW, both the bands I play in performed on Friday (at the same event). Quite an exhausting experience.
[Corion]: choroba: Ooof! I can imagine that ;)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-03-27 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.