📅  最后修改于: 2022-03-11 14:45:08.010000             🧑  作者: Mango
import re
line = "should we use regex more often? let me know at 321dsasdsa@dasdsa.com.lol"
match = re.search(r'[\w\.-]+@[\w\.-]+', line)
match.group(0)
'321dsasdsa@dasdsa.com.lol'