Detect the Email Addresses

  • + 0 comments
    import re, sys
    
    regex = re.findall(r"[\w.]+@\w+(?:\.\w+)+", sys.stdin.read())
    print(*sorted(set(regex)), sep=';')