View Single Post
Old 01-21-2010, 10:55 AM  
Cyber Fucker
Hmm
 
Cyber Fucker's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
Help me to validate my RegEx code.

I want it to match all alphanumeric characters (digits and letters, uppercase and lowercase), spaces " ", underscores "_", dashes "-", and dots "." and it should be at least 3 characters long and not more than 32 characters long.

Would it be..

^[A-Z0-9.-_]{3,32}+$

^[A-Z0-9.-_]{3,32}$

^[A-Za-z0-9.-_]{3,32}+$

^[A-Za-z0-9\.\-_]{3,32}+$

Which one would be correct if any (I need it for vbulletin forms) ?
Thank you in advance for the help.
__________________
Cyber Fucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote