spaz has asked for the wisdom of the Perl Monks concerning the following question:
I have several scripts which need to strip out (NOT IDENTIFY) HTML tags.
I currently use s/<[^>]+?>//g to remove all HTML tags on a given line.
Is this the correct way to get it done?
Is this the fastest way to do what I want?
I currently use s/<[^>]+?>//g to remove all HTML tags on a given line.
Is this the correct way to get it done?
Is this the fastest way to do what I want?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: HTML Matching
by chromatic (Archbishop) on Nov 19, 2000 at 01:07 UTC | |
Re: HTML Matching
by autark (Friar) on Nov 19, 2000 at 01:08 UTC | |
Re: HTML Matching
by japhy (Canon) on Nov 19, 2000 at 01:45 UTC | |
by tilly (Archbishop) on Nov 19, 2000 at 03:02 UTC | |
by japhy (Canon) on Nov 19, 2000 at 03:26 UTC | |
by tilly (Archbishop) on Nov 19, 2000 at 03:48 UTC | |
Re (tilly) 1: HTML Matching
by tilly (Archbishop) on Nov 19, 2000 at 02:59 UTC | |
Re: HTML Matching
by cianoz (Friar) on Nov 19, 2000 at 01:16 UTC | |
by autark (Friar) on Nov 19, 2000 at 01:24 UTC |
Back to
Seekers of Perl Wisdom