+ 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!

31st Mar 2018, 5:02 PM
Rick Swords
Rick Swords - avatar
3 ответов
+ 2
This is the most comprehensive article regarding email addresses and regular expressions http://regular-expressions.mobi/email.html?wlr=1
31st Mar 2018, 6:18 PM
Emma
0
Thanks
31st Mar 2018, 6:19 PM
Rick Swords
Rick Swords - avatar
0
For more explanation learn on solo>>>>learn
20th Aug 2021, 9:32 AM
ANDREW TSEGAYE
ANDREW TSEGAYE - avatar