Validating email address using Regular expression

  robertsaid 05:48 08 May 2015
Locked

Hi I 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?

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Alienware 17 R4 2017 review

Is this the future of VR and AR?

Best iPad buying guide 2017

Comment regarder le Bureau des L├ęgendes en ligne ?