Javascript for validating email with regular expression

If it doesn't find any matches then it will fail the validation and the function will return false, if the match returns true then the email will be of a correct format and the function will return true.

indicates the minimum and maximum number of characters.

This post collects all my notes and references on j Query Form validation library.

This includes a large bunch of sample code and a complete reference guide to all the built-in validation rules in the library.

If you skip the message for a validation, the default message is displayed.

See a complete demo @Codepen The messages parameter is optional.