How Can I Extract Doman Names Like This But Only With Related Links ?

Polas5

Member
Joined
Jul 23, 2011
Messages
14
Location
Alytus, Lithuania
Programming Experience
Beginner
How to make regex match code for vb.net to extract domain names but only with related links like this and get output as i type in searchbox.

Example:

I type vb.net for begginers and i want to extract it only related vb forums,sites with these doman names.
How can i do that ?

Here is the picture and this is that what i want to extract only these links under as i type in searchbox and other all links remove that do not related and extract them all from google.


16076778.png

81843910.png

30861268.png

42451855.png



And here is my code i created

VB.NET:
Dim m1 As MatchCollection = Regex.Matches(source, "http://\b\w+\s*\b\.(net|com|us|org|ru|lt|co.uk|tr|info)|(ftp|telnet)", RegexOptions.Singleline + RegexOptions.IgnoreCase)
        For Each m As Match In m1
            Dim value As String = m.Groups(0).Value
            ListBox1.Items.Add(value)
            Next

Thanks.
 
I want like this if still do not understand what i want to tell you.
Example: i search for games and i want to get only games doman names as links
i search for regex examples and i want to get only these doman names as links

more examples:

programming games
programming games tutorials
Programming games links
Programming games for begginers.

More example:

watch movies
movies online
movies online 2011
best movies online

More example:

http://www.regexexpressions.com
http://www.regexlibrary.org
http://www.regexadvice.info
http://www.regexdatabase.us

More example:

http://www.vbforbegginers.com
http://www.vb.nethardturorials.info
http://www.vb.netgodcity.us
http://www.vb.netfunnytutorials.com

more examples:

http://www.onlinemovies.com
http://www.onlinegoodmovies.org
http://www.googdmovies.info
http://www.superfunnymovies.us

Now you understand what i need ?

Do not extract these

http://www.google.adwords.co.uk
http://www.google.translate.com
http://www.ihategoogle.de

Maybe it will help you to understand for better now.

and so on.
 
Back
Top