In Java Script, regular expressions are also objects.
These patterns are used with the exec and test methods.
In this article we will discuss about regular expression for validating Phone number in various format.
In the following example user enters a phone number.
[a-z] : It matches characters from lowercase ‘a’ to lowercase ‘z’. If by mistake, user skips entering any detail, soon the alert message appear on the form.
escaping - by -) [0-9] : It matches digital number from 0-9. That means, you could be very sure about the form, whether users have entered the details or not.
By combining the expression for numbers and alphabetic characters, there is an expression that checks, whether the entered things includes numbers and alphabetic character or not.
The expression for matching numbers and characters in the field is: /^[0-9a-z A-Z] $/ It’s must to provide validation in the select field.
So, just to make sure that user entered the email address in the correct format, it’s necessary to include email validation code inside the validation codes.
A general expression to check valid email address is: /^[w-.
It happens sometimes, when user forgets to choose option from the select feild.Tags: Adult Dating, affair dating, sex dating