hey guys, I'm a regexp noob, Is it possible with preg_replace to remove a the an entire paragraph tag?
<p><div class="vidwrapper"> lot of content with oder divs etc. </div><p>
The paragraph should only be removed if it is following div has a class of .vidwrapper.
Is that even possible? Any idea how this regexp would look like? Thank you for your help.
`. Trying to fix many of these little corner cases with a (or multiple) regex(-es) will most likely result in a hideous, error-prone and hard to maintain solution.
– Bart Kiers Feb 19 '11 at 14:12inside of it! It's always the same structure inside of this div! there are just other divs inside of it and a
– matt Feb 19 '11 at 16:57around it inside of my RSS feeds. I simply need to get rid of that! And there will be no need to make any exceptions or difficult special cases in this regex because the `
– matt Feb 19 '11 at 17:40