laziness, impatience, and hubris | |
PerlMonks |
Re: Regex Problemby FunkyMonk (Chancellor) |
on Aug 01, 2007 at 18:00 UTC ( [id://630131]=note: print w/replies, xml ) | Need Help?? |
You can use a negated character class: [^-\w] (match any character that isn't a \w or dash):
See perlretut, perlrequick and perlre for the details.
In Section
Seekers of Perl Wisdom
|
|