471,356 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

parsing html using regular expressions

Hi,

I need to parse some html that contains the comments: <!-- Start Display
---> and <!-- End Display ---> . I need to capture all the HTML between
these comments. I started with: r = New Regex("Start Display --->(.*)<!--
End Display --->") but it didn't seem to match anything. I also tried using
the Substring function in the string library but it didn't match the first
comment for some reason ie strTemp.IndexOf("<!-- Start Display --->")
always returned -1 (and I double checked that the text actually existed in
the html).

Can anyone point me in the right direction?

I also need to remove all input buttons on the page. Is there an easy way
to do this?

Thanks in advance for your help
Jul 21 '05 #1
0 995

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by YoBro | last post: by
3 posts views Thread by Alexandre H. Guerra | last post: by
6 posts views Thread by Mark Rae | last post: by
1 post views Thread by yonido | last post: by
17 posts views Thread by Mark | last post: by
1 post views Thread by Robert Neville | last post: by
5 posts views Thread by Svenn Are Bjerkem | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.