Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validate multiple emails in a textbox

Status
Not open for further replies.

manjulam

Programmer
Feb 27, 2002
103
US
I have a textbox which can take multiple emails separated by a comma. How do I validate this textbox for valid emails?
 
split the text first with delimiter "," into a string array...


hope ..
 
I was wondering whether there is a regular expression that can be used with the validator controls?
 
this is the regular expression that I use in the regularexpressionvalidator control for this textbox:

\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

Is there any way to extend this expression to accomodate for than one email addresses?
 
I got it working. I used the regular expression:

\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top