----- Original Message ----- From: "Ing. Branislav Gerzo" <[EMAIL PROTECTED]>
To: <beginners@perl.org>
Sent: Friday, May 13, 2005 8:24 AM
Subject: Re: Finding comment tags



Vladimir D Belousov [VDB], on Friday, May 13, 2005 at 17:14 (+0400)
typed:

JC> <!--#include virtual ....
you can use simple regexp for this (not tested):
@tags = $html =~ /<!--([^>]+)/g;
VDB> <!-- This is the comment. 5>3, Am I wrong? --> you are right. nothing be easier than edit my regexp to get:
@tags = $html =~ /<!--/s*(.+?)/s*-->/g;
and this one was tested :o)


you mean, ?
@tags = $html =~ /<!--\s*(.+?)\s*-->/g;

--

How do you protect mail on web? I use http://www.2pu.net

[You're not ready for immortality - Ambassador Kosh of the Vorlons]



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




--
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