You are viewing a single comment's thread. Return to all comments →
Python 3
import re import sys n = int(input()) string = sys.stdin.read() pattern = r'((\w+(\.\w+)*)@(\w+(\.\w+)*))' matches = re.finditer(pattern, string) email = set() for match in matches: email.add(match.group(0)) print(";".join(sorted(list(email)))
Seems like cookies are disabled on this browser, please enable them to open this website
Detect the Email Addresses
You are viewing a single comment's thread. Return to all comments →
Python 3