Hi. You're not inviting people to reply to you because:
- you don't have a real name in your 'From:' (You have a personal mail account, so why not supply your name?) - You have a line in your message 127 characters long, which isn't helped by your 24-character indent. (Try to summarise your post within a 72-character margin. If example data exceeds that then attach it instead of putting it in-line) It took me about five minutes to see your intention, "'midst the winter snow," but your problem is that you have multi-line data which you expect to be spanned by (.*). If you add the /s (single-line) qualifier to your regex test then a dot will also match "\n". HTH, Rob <[EMAIL PROTECTED]> wrote: > > 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]