I wrote a script that reads the content of a html page (using the LWP
module) and puts it into a variable, in my example $result
now i would like to snip out a part of that long htmlcode. I am
looking for everyting between these two <!-- comment --> strings
This is a part of the code from $result
[html code before] (snip)...
<!-- Product intro row -->
<TABLE border=0 cellPadding=3 cellSpacing=0 width="100%">
<TR>
<TD class="TxtProductIntro"><B></B></TD>
</TR>
<TR>
<TD class="TxtProductIntro">Einleitung<BR><BR>A LONG LONG LONG
DESCRIPTION COMES HERE ...<BR><BR></TD>
</TR>
</TABLE>
<!-- Product specification row -->
... (snip) [html code follows]
so I did the following:
my ($content) = $result =~ m{<!-- Product intro row -->(.*)<!-- Product specification
row -->}g;
but it always returns an empty result.
also tryed this :
my ($content) = $result =~ m{<!-- Product intro row -->([^XXXXX]*)<!-- Product
specification row -->}g;
I know the [^XXXXX]* thing is foolish but it worked for some other
parts of my script.
What am I doing wrong and is there a easy solution or why isn't there
one. I am lost
Any help appreciated, thanks in advance.
Meik Milevczik
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]