I am new to python and regex, and I was wondering how to extract the first part of the email address before the domain name. For example, if:
s='xjhgjg876896@domain.com'
I would like the result of a regular expression (given all the "sortings" of email identifiers, including numbers, etc.):
xjhgjg876896
I get an idea of ββregex - since I know that I need to scan to "@" and then save the result, but I'm not sure how to implement this in python.
Thank you for your time.
source
share