Jul 7, 2005 #1 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?
I have a textbox which can take multiple emails separated by a comma. How do I validate this textbox for valid emails?
Jul 7, 2005 #2 VBakias MIS May 24, 2005 219 GR split the text first with delimiter "," into a string array... hope .. Upvote 0 Downvote
Jul 7, 2005 Thread starter #3 manjulam Programmer Feb 27, 2002 103 US I was wondering whether there is a regular expression that can be used with the validator controls? Upvote 0 Downvote
Jul 7, 2005 #4 VBakias MIS May 24, 2005 219 GR Dim a As System.Text.RegularExpressions.Regex ... Upvote 0 Downvote
Jul 7, 2005 Thread starter #5 manjulam Programmer Feb 27, 2002 103 US 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? Upvote 0 Downvote
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?
Jul 7, 2005 Thread starter #6 manjulam Programmer Feb 27, 2002 103 US I got it working. I used the regular expression: \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)* Upvote 0 Downvote
I got it working. I used the regular expression: \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*