Dear to all,
How to make Regex match code for vb6 to extract domain names but only with related links like this.For example if i write the word "visual basic" then my program show me related links about the word "visual basic" in a list box. such as http://www.vbforbegginers.com
http://www.vb.nethardturorials.info
http://www.vb.netgodcity.us
http://www.vb.netfunnytutorials.com
but my code does not show me any result.
Dim dsource As String
Dim result
dsource = "http://www.google.lt/search?num=100&q=" & Text2.Text
Set regweb = New RegExp ' Create a regular expression.
regweb.Pattern = "http://\b\w+\s\\(net|com|us|org|ru|lt|co.uk|tr|info(ftp|telnet)\*$"
regweb.IgnoreCase = True ' Set case insensitivity.
regweb.Global = True ' Set global applicability.
result = Inet1.OpenURL(dsource)
Set Matches2 = regweb.Execute(dsource)
For Each Match2 In Matches2
sweb = Match2
Debug.Print result & dweb.Exists(result)
If dweb.Exists(result) = False Then
dweb.Add (result), 1
List2.AddItem result
Beep
End If
Next
Please check and help me.Thanks