Sanath Sanath - 1 year ago 73
Javascript Question

regular expression validating email with specific domain/subdomain

I need to validate email with specific domain name and with/without a subdomain, using javascript. - valid - valid - invalid - invalid - invalid - invalid

The reg exp that I used.


Answer Source

Make the subdomain part as optional.



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download