+ 1
Email extraction.
https://code.sololearn.com/c0rqEFg5AGPi #Posting some code to see if members have improvements or comments: import re pattern = r"([\w\.-]+)@([\w\.-]+)(\.[\w\.]+)" email = input('Enter your email address: ') match = re.search(pattern, email) if match: print(match.group()) else: print("No valid email provided.") #Show me your best solution for getting email addresses!
3 Answers
+ 2
This is the most comprehensive article regarding email addresses and regular expressions http://regular-expressions.mobi/email.html?wlr=1
0
Thanks
0
For more explanation learn on solo>>>>learn