G
George Durzi
Consider the following HTML snippet. I want to extract the section shown
below.
<!-- some html -->
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 border=0><?xml version=1.0
encoding=UTF-16?>
** There is some HTML here that I want to extract **
</TABLE>
<!-- some html -->
I did this:
Regex regex = new Regex(@<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0
border=0><?xml version=1.0 encoding=UTF-16?>" + "((.|\n)*?)" + "</TABLE>",
RegexOptions.IgnoreCase|RegexOptions.Multiline|RegexOptions.IgnorePatternWhi
tespace|RegexOptions.Compiled);
No worky ...
Any idea what I'm doing wrong?
Am I building the regular expression correctly ?
below.
<!-- some html -->
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 border=0><?xml version=1.0
encoding=UTF-16?>
** There is some HTML here that I want to extract **
</TABLE>
<!-- some html -->
I did this:
Regex regex = new Regex(@<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0
border=0><?xml version=1.0 encoding=UTF-16?>" + "((.|\n)*?)" + "</TABLE>",
RegexOptions.IgnoreCase|RegexOptions.Multiline|RegexOptions.IgnorePatternWhi
tespace|RegexOptions.Compiled);
No worky ...
Any idea what I'm doing wrong?
Am I building the regular expression correctly ?