You should not extract html tags with this...

check out
http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/striphtml.gz

The above can still be tricked out I think when having <img alt="A > B">
but for sure is way better. It's in fact 3 regexes.

Also read
http://www.perldoc.com/perl5.6.1/pod/perlfaq9.html#How-do-I-remove-HTML-from-a-string-
on how to use HTML::Parser from CPAN to do even a better job (I think).

As for your specific question, I don't have a clue at all:-) The gurus
will answer promptly

Etienne

Girish wrote:
> 
> Hi Again,
> 
> I have a doubt, why do people use
> 
> if($html =~ /(<[^>]*>)/) {
>         ....
> }
> 
> instead of simple to use and understand
> if($html =~ /(<.*?>)/) {
>         ....
> }
> To extract HTML tags.
> 
> Regards,
> Girish
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Etienne Marcotte
Specifications Management - Quality Control
Imperial Tobacco Ltd. - Montreal (Qc) Canada
514.932.6161 x.4001

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

Reply via email to