Email validation not working...

Garret

New Member
ValidationExpression="[w.-]+(+[w-]*)?@([w-]+.)+[w-]+"<BR><BR>The above is the expression I use to validate email addresses, got that from many sites/books.<BR><BR>The problem is that while it seems to work great on IE 5.5 to IE 6 on a PC it doesn't work right on other browsers.<BR><BR>Mainly, Mac OS with IE browser (5 or whatever the latest is). If you enter an email like...<BR><BR>[email protected]<BR><BR>...it will choke on the _ character sometimes. On that same note, I have seen addresses like...<BR><BR>[email protected]<BR><BR>...choke as well because of the double periods in there. Can someone please help me out all I want to check for is the following...<BR><BR>1. At least one character in the front.<BR><BR>2. The @ symbol somewhere in there.<BR><BR>3. At least one character after the @.<BR><BR>4. At least one period after the @.<BR><BR>5. At least one character after the period.<BR><BR>....there must be a super simple validation expression that will work with asp.net's control (vb).<BR><BR>Any ideas?<BR><BR>Thanks!
 
Back
Top