My workplace has forms sent in via Asana and I am trying to extract the Recipient Email:
entry and the Recipient Contact Number:
from the desc
variable. (note: there are other email & phone numbers I dont want to get in the larger result)
I'm trying to learn after years of PHP & js
The result I want is
i_want@this.com
but I'm getting
nah bro
Can anyone nudge me the right way?
import re
desc = '''Recipient Email:
i_want@this.com
Recipient Contact Number:
+44(0)0000 000000
'''
email = re.search('Recipient Email:(.*)Recipient Contact Number:', desc)
if email:
found = email.group(1)
else:
print('nah bro')