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
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)