Seo Forum

Web Administration => Web Hosting => Topic started by: pamelov on 05-07-2015, 23:53:49

Title: Validating email address using Regular expression
Post by: pamelov on 05-07-2015, 23:53:49

Hi I host my site with asphostportal and 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?