Online REGEX tester and debugger

https://regex101.com

Advertisements

Python: regular expressions

Parentheses are not part of the match, but tell you where to start and stop the extraction you want to do:

re.findall(‘^From: (\S+@\S+)’, input_var)

Having this kind of string: From: metireatumadre@milf.co.uk

Will stract: metireatumadre@milf.co.uk