Dim sr As StreamReader = New StreamReader(Server.MapPath("/lms/" & ddlPageList.SelectedItem.ToString))
Dim line As String = sr.ReadToEnd
Dim matches As MatchCollection
Dim regex As New Regex("|>)", RegexOptions.Compiled Or RegexOptions.IgnoreCase)
matches = regex.Matches(line)
sr.Close()
Console.WriteLine("{0} matches in ", matches.Count)
For Each match As Match In matches
Dim groups As GroupCollection = match.Groups
Dim test As String = groups.Item(0).Value
ddlControlList.Items.Add(groups.Item(0).Value)
Next
|