What is RegEx ?

Simply it is short form of Regular Expression.

My regEx :

 /^(\w+([\.-]?)\[email protected]\w+\.\w+(\.\w+)?)$/

I am going to check the format of my inputted value with the regular expression each time user press any key from key board.

What is ideal email format?

Examples of valid email addresses:

For more check : Here

or

Run my code ; )

Hope this will help you <3