You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# -*- coding: utf-8 -*-
|
|
import re
|
|
|
|
|
|
email_re = re.compile(r'[\w\-\.]+\@[\w\-\.]+')
|
|
|
|
|
|
def extract_email(s):
|
|
"""Достать email из строки."""
|
|
result = email_re.search(s)
|
|
return result.group(0) if result else None
|
|
|