Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(arr) {
- arr.forEach(line => {
- let result = line.match(/(?<=\s)([a-z]+|\d+)(\d+|\w+|\.+|-+)([a-z]+|\d+)\@[a-z]+\-?[a-z]+\.[a-z]+(\.[a-z]+)?/gm);
- if (result) {
- console.log(result.join('\n'));
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement