![]() |
|
No such thing as a small change | |
PerlMonks |
Re: Regex helpby Anonymous Monk |
on Nov 16, 2002 at 22:02 UTC ( #213455=note: print w/replies, xml ) | Need Help?? |
=~ /[^A-Za-z0-9]/
The carrot should be inside the brackets not outside. When it's outside the brackets perl tries to find A-Za-z0-9 in the beginning of words. If it's in the brackets it tells perl to find ANY characters besides the ones in the brackets.
Fixed square brackets - dvergin 2002-11-16
In Section
Seekers of Perl Wisdom
|
|