Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get email ids from the given string using javascript
- (a) xxx@gmail.com (Blig fun), yyy@gmail.info (LOl)
- I need the output like
- xxx@gmail.com
- yyy@gmail.info
- var tbstring = '(a) xxx@gmail.com (Blig fun), yyy@gmail.info (LOl)';
- result = tbstring.match(/b[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}b/ig);
- alert(result.join('n'));
Add Comment
Please, Sign In to add comment