Validating email address using Regular expression

Author Topic: Validating email address using Regular expression  (Read 727 times)

Offline pamelovTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 2
  • Karma: 0
Validating email address using Regular expression
« on: 05-07-2015, 22: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?


 

Related Topics

  Subject / Started by Replies Last post
2 Replies
3571 Views
Last post 05-10-2010, 03:47:15
by tradedemon
9 Replies
3944 Views
Last post 01-04-2015, 23:21:52
by jaysh4922
1 Replies
1682 Views
Last post 03-15-2012, 09:08:04
by Elev8
0 Replies
993 Views
Last post 11-10-2014, 23:35:02
by Siservices
1 Replies
781 Views
Last post 09-30-2016, 16:41:41
by NamRay