good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Regular Expression Helpby tlhf (Scribe) |
on Sep 02, 2001 at 08:46 UTC ( [id://109702]=note: print w/replies, xml ) | Need Help?? |
In my own experience, something like s/<\/?\w+(.*?(\".*?\")?(\'.*?\')?)*?>//g is usually nicer for stripping tags, because often >s have a habit of slipping into automatically generated hrefs. And occasionally javascript event properties.
I'm not definate if the above works perfectly, cause I just hacked it up in a couple of minutes, but it should be ok.
In Section
Seekers of Perl Wisdom
|
|