![]() |
|
No such thing as a small change | |
PerlMonks |
Re: Replacing Textby mreece (Friar) |
on Apr 05, 2007 at 22:50 UTC ( #608566=note: print w/replies, xml ) | Need Help?? |
expect a lot of answers directing you towards various html scrubbers and token parsers, but here is the dirty regex:
there are a lot of assumptions in there, like the link label doesn't contain < (ie, <img>), there are no line breaks, HTML is well-formed, no embedded comments (<a <!--oops--> href="">...</a>), etc, etc. but if all your use cases are like the example there, it will work.
In Section
Seekers of Perl Wisdom
|
|