in reply to
Exclude some non-word char from Regexp \W
kyle
and
jethro
are right, and their answer is IMHO the best. But timtowtdi, so here's another way to do it:
m/(?![ -])\W)/
[download]
Comment on
Re: Exclude some non-word char from Regexp \W
Download
Code
In Section
Seekers of Perl Wisdom