regular expression email python code example
Example: find email address pytho
import re
line = "should we use regex more often? let me know at [email protected]"
match = re.search(r'[\w\.-]+@[\w\.-]+', line)
match.group(0)
'[email protected]'
import re
line = "should we use regex more often? let me know at [email protected]"
match = re.search(r'[\w\.-]+@[\w\.-]+', line)
match.group(0)
'[email protected]'