I\'m trying to extract any jabber accounts (emails) using regex from this page.
I\'ve tried using regex:
\\w+@[\\w.-]+|\\{(?:\\w+, *)+\\w+\\}@[\\w.-]+ >
This might work:
[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+
p = re.compile(ur'[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+', re.MULTILINE | re.IGNORECASE) test_str = r'...' re.findall(p, test_str)
See example.