This would need just loop through each field in the form and check for data.
Data Format Validation – Secondly, the data that is entered must be checked for correct form and value.
On the final line we call test method for our regular expression and pass the email address as input.
Last month I wrote about regular expressions in Java, today I’ll show you how to use regular expression in Java Script to validate email address.
Here is the code to validate email address in Java Script using regular expression.
This would need to put more logic to test correctness of data.
: Finally, the email address must end with two to four alphabets.Having a-z and A-Z means that both lowercase and uppercase letters are allowed.