I'm needing to validate a email address, and website url's for user registration for my site.
Here are the requirements for the Email
1. Email address must be between 9-50 characters long
2. @ must be required
Here is the rest of the requirements:
Email address must begin with alphanumeric characters a-z and 0-9 with allowed characters of - (dash), _ (underscore), and . (period) followed by the @ (at symbol)
followed by alphanumeric characters a-z and 0-9 with allowed characters of - (dash), and ending with a . (period) followed by alphanumeric characters a-z and 0-9
with allowed characters of - (dash) in lengths of 2-4 characters.
Example Email address: a-b-c_d_e.john435_doe-yo@r-e-s34.com or a@gh4-s.com
all characters in the listed above example should be allowed no more should be
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
website url address validation
requirements
1. http://, and / are not going to be allowed for these will be pre-defined in the database
2. web address should be between 2-50 characters. This is NOT including the http:// and / since they will be pre-defined in the database
alphanumeric characters a-z and 0-9 with allowed characters of - (dash), and ending with a . (period) followed by alphanumeric characters a-z and 0-9
with allowed characters of - (dash) in lengths of 2-4 characters.