+ 7
Can someone fix this code?
it's for multiple e mail adressess https://code.sololearn.com/cXr8G4Be3Q9U/?ref=app
3 Respostas
+ 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
+ 5
thanks
+ 4
that it will print all the e mail adressess in the string that i gave to it