See a complete demo @Codepen The messages parameter is optional.
If you skip the messages parameter, the plugin will display default, auto-generated messages.
If you skip the message for a validation, the default message is displayed.Regular expressions are a good way to validate text fields such as names, addresses, phone numbers, and other user information. A regular expression can easily check whether a user entered something that looks like a valid phone number.You can use them to constrain input, apply formatting rules, and check lengths. By using capturing groups to remember each set of digits, the same regular expression can be used to replace the subject text with precisely the format you want.This is not what I want when the user only enters one e-mail.How can I extend my regex above (the first one) to allow multiple mail-addresses to be added while let them be splitted through a semicolon?
Similarly if we want to validate phone number like xxx-xxx-xxxx format then you can use “\d-\d-\d”.