Validation formulas

email address format
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$

social security number format
\d{3,3}-\d{2,2}-\d{4,4}$

alphanumeric (no special characters)
[0-9a-zA-Z\s]*

10 digit long number format
\d{10,10}$

between a 7 and 9 digit long number format
\d{7,9}$

phone number with area code (allows either dashes or periods in between the numbers)
\b\d{3}[-.]?\d{3}[-.]?\d{4}\b

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s