I have a value (a) in my textbox. I want to get the email ids only from the given string using Javascript (I don’t want to use any JS Frameworks).
(a) xxx@gmail.com (Blig fun), yyy@gmail.info (LOl)
I need the output like
xxx@gmail.com
yyy@gmail.info
Try –
Demo – http://jsfiddle.net/ipr101/MM7Aa/
Email RegEx is taken from the RegEx Buddy library and comes with the following provisos –