Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi Team,

My Email Requirement is

Email id should be in the format:

X@Y



X part: can have letters, numbers, underscores, dots (symbols can't be at beginning or end or consecutive)



Y part: can have letters, numbers and dots (at least 1 and at max 2) (dots can't be at the beginning or end or consecutive)



There won’t be any change in the currently allowed length of the email id.

Please Let me know the Javascript Proper Regex Expression for the above function
Posted
Updated 2-Jun-15 3:48am
v2

1 solution

Please try something on your own. We are not here to take requirements and formulate codes for you.

Here we answer specific questions which members face during programming.

We can't work on the whole source code. You need to do that yourself.
If you face any difficulty while coding, feel free to come back here and ask another question with specific issue describing the scenario.

Members will be happy to help you then.

Happy Coding. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900