I have created the program which is extracting doman names links from google but the problem with it that it can extract random domain names links.
I wanna to extract related domain links as i type from textbox1 and put them in listbox related domain names links.
Example:
This is what i want - freeware it extracts links as freeware but puts too and junk links as google,youtube and on.
So i want to make work as i type from keywords
example freeware and get all links with like this
More example:
www.freeware.com
www.freeware-home.com
www.freewarebest.com
like so i want to make my regex code to work if understand not put www.google.com or other links which is not relating from above.
and here is my a part of code regex
Expand|Select|Wrap|Line Numbers
- http://\b\w+\s*\b\.(net|com|us|org|ru|lt|co.uk|tr|info)|(ftp|telnet)\*$
To understand what i mean to say.
Look at the picture iliustraisions.
This is that i want to remove
Leave only these matching found
And this is the code how to remove the dups junk links from the listbox but it doesn't work.
actually it remove but leaves google links and other which is not relating that one.
Expand|Select|Wrap|Line Numbers
- ListBox1.Sorted = True
- ListBox1.Refresh()
- Dim index As Integer
- Dim itemcount As Integer = ListBox1.Items.Count
- If itemcount > 1 Then
- Dim lastitem As String = ListBox1.Items(itemcount - 1)
- For index = itemcount - 2 To 0 Step -1
- If ListBox1.Items(index) = lastitem Then
- ListBox1.Items.RemoveAt(index)
- Else
- lastitem = ListBox1.Items(index)
- End If
- Next
- End If
http://freeware.acehtml.com
http://freeware.remakes.org
http://freeware.the-meiers.org
http://www.bullfreeware.com
http://www.burn4free.com
http://www.freemake.com
http://www.freeware-antivirus.com
http://www.freeware-downloads.com
http://www.freeware.ru
http://www.freeware4pc.com
http://www.freewarearena.com
http://www.freewarebb.com
http://www.freewaregenius.com
http://www.freewarekeylogger.org
http://www.freewarelovers.com
http://www.freewareosx.com
http://www.freewarepalm.com
http://www.freewareppc.com
http://www.freewareweb.com
http://www.newfreeware.com
http://www.pocketpcfreeware.com
http://www.portablefreeware.com