Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2007, 05:44 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parsing HTML with Regex

Hello Everyone and thanks for your help in advance. I am in need of writing a Regex expression that parse a web page. However, I am having problems getting the Regex right in order to match. Bascially, the pattern starts with

<TD ALIGN="left"

and ends with

<BR><BR>

Between the starting and ending tags, there are other links and HTML tags, including numerous special characters. My latest try was:

MatchPattern = "[\<]TD ALIGN[a-z\%\=\:\ \#\&0-9\" & Chr(34) & "\>\<\/\.\\_\?\&\,\(\)\-\" & Chr(13) & "]*[\<BR\>]"

without success. Any help on this issue would be greatly appreciated. Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
regex mrame XSLT 12 July 25th, 2008 09:37 AM
Regex.IsMatch - receive a parsing error smcirish VB How-To 1 June 14th, 2007 12:21 AM
Parsing an html file hydroxide Pro PHP 3 June 27th, 2006 02:12 AM
Regex Help boyer99g General .NET 2 October 8th, 2004 05:46 PM
problem parsing html using MS.XMLHTTP awardle Classic ASP XML 1 September 15th, 2003 11:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.