Polas5
Member
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.
And here is my code i created
Thanks.
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.




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.