Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function exactEmails(input) {
- for (let line of input) {
- let regex = /\b[a-z\d]+[.]?[_]?[-]?[a-z\d]+@{1}[a-z]+[-]?[a-z]+[.]?[a-z]+[.][a-z]+\b/g
- if (line.match(regex) != null) {
- console.log(line.match(regex).join(''))
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment