import re line = "should we use regex more often? let me know at 321dsasdsa@dasdsa.com.lol" match = re.search(r'[w.-]+@[w.-]+', line) match.group(0) '321dsasdsa@dasdsa.com.lol'