REGEX: Simple Regular Expression matches.

Posted October 2nd, 2010


Simple Regular Expression match strings.

Alphabetical = /^[a-zA-z]+$/
Alphanumeric = /^[0-9A-Za-z]+$/
Email = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/