Python 正则表达式提取电子邮件地址用户名
import re
sample_str = 'The advancements in biomarine studies franky@google.com, with the investments necessary and Davos sinatra123@yahoo.com Then The New Yorker article on wind farms...'
regex = r'(\w+)@'
emails = re.findall(regex, sample_str)
print(emails)
原文地址: https://www.cveoy.top/t/topic/o0NA 著作权归作者所有。请勿转载和采集!