AnApprentice AnApprentice - 1 year ago 67
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?


Answer Source

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