Regex:how to filter more specific domains?

i know how to filter: (.+?@yahoo.(?:ca|fr))
yahoo.ca
yahoo.fr


but how to filter more domains at the same time:
yahoo.ca
yahoo.com
xplorer.ca
xplorer.com
jazzera.ya
maurice cristenAsked:
Who is Participating?
 
Rgonzo1971Commented:
Hi,

pls try
(.+?@(yahoo|xplorer|jazzera).(?:ca|fr|com|ya))

Open in new window

REgards
1
 
maurice cristenAuthor Commented:
thx
0
 
maurice cristenAuthor Commented:
i have a problem with this: (.+?@(yahoo|xplorer|link).(?:ca|fr|com|ya))

results are:
asd@yahoo.com
asdsad@xplorer.ca
adas@earhtlink.net
asdsfsd@linkin.com


as you can see here appear: earthlink.net and also linkin.com  etc i want only @link.com
only that words no other extensions
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
Rgonzo1971Commented:
pls try
(.+?@(yahoo|xplorer|link)\.(?:ca|fr|com|net))

Open in new window

0
 
maurice cristenAuthor Commented:
nope i receive blank and empty output file
0
 
Rgonzo1971Commented:
without seeing the source is difficult to be sure
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.