+ 2

CHALLENGE: extract email addresses from string

write a program which will extract email addresses from a string and prints them. example: String = "hello my name is xyz and here is my email: xyz@abc.com. Please contact me or my friend (aaa@zzz.com)." Output: xyz@abc.com aaa@zzz.com https://code.sololearn.com/c85FY237omX6/?ref=app

4th Nov 2017, 8:17 PM
Jeremy
Jeremy - avatar
3 Antworten
+ 3
Niall, He's not asking for help on how to do it. This is a "Challenge" discussion: he's challenging people to write their own program.
4th Nov 2017, 10:33 PM
Stephanie
+ 3
oh, my mistake. I was trying to help. 😂
4th Nov 2017, 10:36 PM
Niall Matthews
Niall Matthews - avatar
- 2
https://stackoverflow.com/questions/13796451/how-to-extract-a-string-between-two-delimiters Find the index of the first and last characters and then take a substring from between them.
4th Nov 2017, 10:29 PM
Niall Matthews
Niall Matthews - avatar