[ create a new paste ] login | about

Link: http://codepad.org/W2p6waBb    [ raw code | output | fork ]

Python, pasted on Mar 25:
1
2
3
4
5
6
7
import re

data = '''<a href="mailto:alice at bob dot com">'''
mail_re = "(?:[a-zA-Z]+[\w+\.]+[a-zA-Z]+)\s*(?:@|\bat\b)\s*(?:(?:(?:(?:[a-zA-Z]+)\s*(?:\.|dot|dom)\s*(?:[a-zA-Z]+)\s*(?:\.|dot|dom)\s*)(?:edu|com))|(?:(?:[a-zA-Z]+\s*(?:\.|dot|dom)\s*(?:edu|com))))"

matches = re.findall(mail_re, data)
print matches


Output:
1
[]


Create a new paste based on this one


Comments: