Primary resource I use for URL, zip codes, phone numbers, etc:
http://msdn.microsoft.com/en-us/lib...50303.aspxSpecific URL Targeting for validation:
<br>Facebook, validates profiles and/or pages:<br>(?<img src='http://www.activemodules.com/DesktopModules/ActiveForums/themes/DNN/emoticons/sad.gif' align="absmiddle" border="0" />http|https):\/\/)?(?:www.)?facebook.com\/(?<img src='http://www.activemodules.com/DesktopModules/ActiveForums/themes/DNN/emoticons/sad.gif' align="absmiddle" border="0" />?:\w)*#!\/)?(?:pages\/)?(?:[?\w\-]*\/)?(?:profile.php\?id=(?=\d.*))?([\w\-]*)?<br><br>Twitter, validates profiles:<br>(http|https)://(www.twitter|twitter).com/(#!/)?[a-zA-Z0-9_]{1,15}<br>I also ran across this one that may be of help to you for firstname/lastname validation:
http://stackoverflow.com/questions/2385701/regular-expression-for-first-and-last-name
You can try changing the expression:
[a-zA-Z]{3,30}To this:
[a-zA-Z]{2,30}The {2,30} states at least 2 characters up to a maximum of 30. Also take a look at the trailing end of my twitter validation: [a-zA-Z0-9_]{1,15}
I haven't tested those though. But intent to look into first & last names a bit more myself. If I come up with some good solutions, I'll post back here.
Also, keep in mind, there are some differences in regex from ASP to PHP. I learned this the hard way. Not all regex expressions work across multiple languages.
Hope this helps.