![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: extracting words with certain charactersby ColonelPanic (Friar) |
on Dec 04, 2012 at 11:00 UTC ( [id://1007061]=note: print w/replies, xml ) | Need Help?? |
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?
If so, you could use a regex that matches a more traditional definition of a word:
\w matches "word characters": alphanumeric characters plus underscores. When's the last time you used duct tape on a duct? --Larry Wall
In Section
Seekers of Perl Wisdom
|
|