Hello,
I have a regular expression to validate email addresses:
"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
Now I need to force all emails to be from a given domain, for example,
accept only:
john@MyDomain.c om
andrew@MyDomain .com
marysmith@MyDom ain.com
....
How should I changed by regular expression to accomplish this?
Thanks,
Miguel
I have a regular expression to validate email addresses:
"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
Now I need to force all emails to be from a given domain, for example,
accept only:
john@MyDomain.c om
andrew@MyDomain .com
marysmith@MyDom ain.com
....
How should I changed by regular expression to accomplish this?
Thanks,
Miguel
Comment