954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Regex issue in vb.net

I'm trying to use this url as regex but it doesnt seems to be working
'sorry of my bad english'

Full code:

Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://localhost/pos/leftpanel.html")
        Dim response As System.Net.HttpWebResponse = request.GetResponse

        Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())

        Dim rssourcecode As String = sr.ReadToEnd

Dim r As New System.Text.RegularExpressions.Regex("http://localhost/booksmodule/ListContent.php?case=.*&funcfor=.*&funcmod=.*&catid=LM3334443&refid=.*&ccshowid=.*")


Dim matches As MatchCollection = r.Matches(rssourcecode)


        For Each itemcode As Match In matches

            ListBox1.Items.Add(itemcode)

        Next


I have added .* on where i want to find matches

here is the actual url

http://localhost/booksmodule/ListContent.php?case=normal&funcfor=author&funcmod=information&catid=LM3334443&refid=22333&ccshowid=553332
linezero
Newbie Poster
17 posts since Nov 2010
Reputation Points: 11
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: