(if you want the "blah" to execute when the variable contains anything EXCEPT ALL letters and/or numbers)if ( $newpasswd !~ /^[A-Za-z0-9]+$/ ) { # blah }
In reply to Re: Quickie regular expression question.
by RazorbladeBidet
in thread Quickie regular expression question.
by rementis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |