正则表达式匹配字符串的邮箱

import re

y='[email protected]@[email protected]@adfcom'

fange = re.findall(r'[A-Za-z0-9]+\@[A-Za-z0-9]+\.com',y)

print(fange)

猜你喜欢

转载自blog.csdn.net/qq_34154005/article/details/80341583