Hi I just host my site with DiscountService.com.au
I need to validate two different domain email addresses using Regular Expression.
we have two domains e.g mydomain.com and newdomain.com.au
For single domain it is working as:
[RegularExpression(@"^[a-zA-Z0-9._%+-]+(@mydomain\.com)$", ErrorMessage = "Registration limited to mydomain")]
How can I add both of the domains, can anyone assist?
Validating email address using Regular expression
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dipankar BiswasRank #992 · 2K reputationPosted May 7, 2015, 8:46 PM EDT
see this link to help...http://stackoverflow.com/questions/936870/best-regular-expression-for-email-format-validation-with-asp-net-3-5-validation
Pramod GehlotRank #2,471 · 568 reputationPosted May 7, 2015, 8:44 PM EDT
Please fallow this link
http://www.codeproject.com/Articles/93804/Using-Regular-Expressions-in-C-NET