主页
Python
Python re 模块
demo_ref_module_re_basic
运行 ❯
×
更改方向
保存代码
更改主题
import re text = 'Contact Emil at emil@example.com or Tobias at tobias@test.com' emails = re.findall(r'\S+@\S+', text) print(emails)
['emil@example.com', 'tobias@test.com']