+ 7

Can someone fix this code?

it's for multiple e mail adressess https://code.sololearn.com/cXr8G4Be3Q9U/?ref=app

14th Jul 2018, 7:59 PM
misgav yosef
misgav yosef - avatar
3 Answers
+ 3
import re pattern=r"([\w\.\-]+)@([\w\\.-]+)(\.[\w\\.-]+)" str="nbgf info@sololearn.com gdfd ad@h.j" m=re.findall(pattern, str) li=[] for i in m: li.append(i[0]+'@'+i[1]+i[2]) for i in li: print(i) https://code.sololearn.com/cltsmmRewTa2/?ref=app
14th Jul 2018, 8:35 PM
Louis
Louis - avatar
+ 5
thanks
14th Jul 2018, 8:40 PM
misgav yosef
misgav yosef - avatar
+ 4
that it will print all the e mail adressess in the string that i gave to it
14th Jul 2018, 8:34 PM
misgav yosef
misgav yosef - avatar