What you want instead, is testing if $newpasswd does contain any characters outside the character class [A-Za-z0-9], and then negate the test:
if ($newpasswd !~ /[^A-Za-z0-9]/) { # EXECUTE SOME THINGS; }
In reply to Re: Quickie regular expression question.
by saintmike
in thread Quickie regular expression question.
by rementis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |