编辑器
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']