if ($user_pass =~ /^[A-Za-z0-9]+$/ && length($user_pass) < 17) { $user_pass = $1;
$1 won't contain anything unless you put some capturing parens in in the pattern.
Smylers
In reply to Re: Regex usernames and Passwords
by Smylers
in thread Regex usernames and Passwords
by tanger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |