![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Regex helpby Ananda (Pilgrim) |
on Nov 18, 2002 at 11:04 UTC ( #213710=note: print w/replies, xml ) | Need Help?? |
Hello Angel, From the query you have posted i observe the following. The function is tripping because the ^(caret) is outside the brackets([]) They need to be inside. Using the æ for testing is perfectly ok the regex performs perfectly, once the caret is placed within the brackets. my $in = "æ"; if ($in !~ /\w/) {print "contains non alpha numeric characters!!"; } else {print 'its all OK (_)';} This should clarify your doubts. Cheers!!! Anandatirtha
In Section
Seekers of Perl Wisdom
|
|