I'm currently using this very relaxed REGEX to validate email addresses:
(/(.+)@(.+)\.(.+){2,}/.test(emailAddress)
I believe that it only allows min1_allowsDots@min1_allowsDots.min2 - is this correct?
How should I modify it to match only a particular domain - anything@ onlythisdomain.com?
TIA!
iSofia
(.+)@onlythisdomain\.(.+){2,}
This should do it.If .com
is also fixed use
(.+)@onlythisdomain\.com