Randal L. Schwartz [RLS], on ,  , 2005 at 13:21 (-0700) has on mind:

perlocean>> you mean, ?
perlocean>> @tags = $html =~ /<!--\s*(.+?)\s*-->/g;
RLS> And that's still wrong.
RLS> <!-- in comment -- --> in comment <-- -- in comment -->

RLS> All three of those phrases are officially "in comment".  That's
RLS> because "--" is actually a "toggle", and you have to be in the right
RLS> toggle state to recognize the ">".
RLS> That's why you should use HTML::Parser, and STOP WRITING REGEX TO PARSE
RLS> HTML.

yes, I use HTML::Parser too, tell me 1 page, which you didn't create,
where is comment used like this :)

-- 

 ...m8s, cu l8r, Brano.

["Bother" said Pooh as "Formating Drive C" appeared on the screen]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to