Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Python, filter emails using finditer()
#python 3.5.2 import re def getEmails(str): regex = r'([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+){0,}' l = [ m.group(0) for m in re.finditer(regex, str) if m.group(0)] return tuple(l) str = "hello@gmail.com;aaaa@yahoo.com no@yes.de, why@hotmail.com" print(getEmails(str))
run
|
edit
|
history
|
help
0
aaa
Print lists separated by comma
shivareddy error
Prime Numbers :-> Sieve of Eratosthenes
chickens,cows,pigs
Python3 - select fruits
https://rextester.com/HYVN80193
Skillenza - Marker Count
Game4
Dictionary example