Quote:
Originally Posted by RLShare
Shouldn't it have both A-Z and a-z to account for all uppercase and lowercase letters? I've only messed with regular expressions in Python but it seems that it should still be the same.
|
the /i switch means case insensitive.
as for the regex. Quite why you would want back ticks, bars and square brackets in usernames is beyond me. is your site called
www.easy.to.hack.com?
the hyphen should go unescaped at the end, I have no idea if backticks need escaping, or if they or anythig else is being weeded out by vb.
/^[ a-z0-9`\^_\[\]\|-]+$/i
or
/^[ a-z0-9\`\^_\[\]\|-]+$/i
are my guesses