Ling F. Zhang wrote:

I have just read in an html file to a variable
$htmlpg...I want to extract the CSS information from
it, basically between (and including) <style
type="text/css"> and </style>

so I use:
$htmlpg =~ /style*?\/style/
but matching would fail...how come?

It will match things like e.g. "oldstyle/stylers" which is probably not what you want. See perlrequick(1), perlretut(1) and perlre(1) manpages:


http://www.perldoc.com/perl5.8.0/pod/perlrequick.html
http://www.perldoc.com/perl5.8.0/pod/perlretut.html
http://www.perldoc.com/perl5.8.0/pod/perlre.html

--
ZSDC Perl and Systems Security Consulting


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to