RegEx domain extraction
-
Hello, i have a very large list of emails, and lots of them are some kind of “dummy emails” so i want to bookmark only domains that i choose, .com .net .org and so on…
Example like this:
zBA@GAD.o
J@jjYe.o
dr@-Dv.L
email@gmail.com
qR@Mx.L1x.t
lNCE@2.GJ
g@VF.yr
h6-6@xkR.O
email2@somedomain.net
rVE1@v.1sP
email3@somedomain.org
W@7…KM1ZgI tried every regex i could find on internet but for this situation nothing worked.
Tried something like :
(\b[A-Za-z0-9._%±]+@[A-Za-z0-9.-]+[(.eu|.com|.org|.ba)]{2,4}\b)
but nothing.
Please help -
Hello, @stefan-ralic, and All,
Why not this simple regex, which select the complete e-mail address, with its line-break
^.+@.+\.(eu|com|org|net|ba)\RRefer to :
https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
and , more specifically to :
https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Original_top-level_domains
https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
Best Regards,
guy038
-
@guy038 this did the trick :) Thank you so much… I tried that already but now i see i was missing ) so no wonder it didn’t work. Thanks again. Best regards
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login