On that same note, you can also check the structure of an email address utilizing the same regular expression (regex) methodology. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).NET), get your very own copy of , so that your phone number records are consistent. The parentheses that appear without backslashes are capturing groups and are used to remember the values matched within them so that the matched text can be recalled later.
Using a library to do form validation can save lots of your development time. j Query Form validation library is the most popular validation library.
Having a-z and A-Z means that both lowercase and uppercase letters are allowed.
indicates the minimum and maximum number of characters.
When you are developing cross-browser web applications this task becomes even less enjoyable due to the lack of useful intrinsic validation functions in Java Script.
Fortunately, Java Script 1.2 has incorporated regular expressions.