1

I am using a regular expressionvalidator in my application to validate emails. It's using ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"

This has worked great for a long time but recently there was a report from a customer that could not create a client with the email adress marie-@domain.com, its a little bit weird address but never the less it works in gmail.

I dont quite understand the expression, so could anybody help me adjust the expression so it also accepts emails in that format?

Yuriy Faktorovich
  • 67,283
  • 14
  • 105
  • 142
  • The definite problem is the "-". I passed it through a regex validator and removing the "-" does make this address pass through as valid. – user3308043 Mar 18 '14 at 20:26

0 Answers0