Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function extractEmails(text) {
- let pattern = /\s[a-z0-9][a-z0-9\.\-_]+[a-z]@[a-z][a-z\-]+(\.([a-z])+){1,}/g
- let match = pattern.exec(text);
- while (match !== null) {
- console.log(match[0])
- match = pattern.exec(text)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment