The goal of is to provide a cross framework and cross language way of validating data.
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.
It is unit tested with 100% code coverage and can be considered fit for production.
The project can be found on Git Hub where you can also find our issue tracker.
27-Oct-2014: The script on this page has been updated to deal with cross-browser issues.
Learn how to validate a users email address using Java Script.
This guide is for anyone who works with designing and deploying web sites and needs to ensure that email addresses input by users are correctly formatted.
On the final line we call test method for our regular expression and pass the email address as input.There are no required external dependencies at all!Though for the datetime and date validator to you need to specify a parse and format function and for that you most likely will want to use a library, is highly recommended.There is also a Travis project used for testing, a Coveralls project used to code coverage as well as the annotated source.
is an open source component of Wrapp and is licensed under the MIT license.
The j Query validate plugin offers one of the the best ways of doing simple, effective email syntax validation on a web page.