AnApprentice AnApprentice - 7 months ago 43
Javascript Question

JavaScript RegEx to determine the email's domain ( for example)

With JavaScript I want to take a input
1st validate that the email is valid (I solved for this)
2nd, validate that the email address came from

Anyone know of a Regex that will deliver the domain?



is true if the string ends in (plus optional whitespace).