Now I wanted to extend that and allow multiple mail-addresses to be added (just like MS Outlook, for example) with a semicolon as a mail-splitter.
This is not what I want when the user only enters one e-mail.
Several test examples of the email addresses are also provided.
I'm looking for a regular expression to parse a custom Vtype that will handle multiple email addresses.
It also allows a single email address that doesn't end in semicolon. You can change the final * by to require at least one address.
Important note: as states in the comment by Martin, if there are additional text before or after the correct email address list, the validation will not fail. To make it work as a validator you need to add Why not just split on the semicolon and then validate each potential email address using your existing regexp ?
 Safari doesn't do validation, but instead offers a custom "email" keyboard, which is designed to make entering email addresses easier.
Here Mudassar Ahmed Khan has explained with an example, how to use Java Script with Check Box List in ASP. This article will explain how to validate Check Box List to check whether its items are selected or not and also how to get the Selected Items i.e. Now you can ask questions directly to me on my new site ASPForums.
I'm looking for something that will allow users to enter multiple email addresses in a text field separated by either comma and/or semicolon.I also have presented numerous test cases of the email addresses and then have finally provided the output of running the program, as usual.package com.icodejava.tools; /** * @author Kushal Paudyal * Last Modified on 2011/05/11 * * This class demonstrates the use of regular expressions to validate multiple email * addresses.After a quick research on the Stackoverflow, I wasn't able to find any solution for the multiple email validation using regex (split JS function is not applicable, but some reason back-end of the application waits for a string with emails separated by var email = "[A-Za-z0-9\._%-] @[A-Za-z0-9\.-] \.[A-Za-z]"; var re = new Reg Exp('^' email '(;\n*' email ')*;?This works perfectly fine, but only allows one e-mail to be entered.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?This is your original expression, changed so that it allows several emails separated by semicolon and (optionally) spaces besides the semicolon.Often this results in to underutilization of Regular Expression and true power is not harnessed.The mapping sample given here exemplifies the power of Regular Expressions by identifying valid E-mail addresses.A Regular Expression is nothing more than a pattern of characters itself, matched against a certain parcel of text.Using Regular Expressions, it is simple to search for a specific word or string of characters.