Quote:
Originally Posted by avantman42
I don't claim to be great at regular expressions, but I think this should work, and preserve any class/style attributes in the paragraph:
Find:
Code:
(<p[^>]+>)<\/p>(.*)
Replace:
|
I would explicitly leave out paragraph tags in the text body, as such:
Code:
(<p(?: [^>]+)?>)</p>((?:(?!</?p>).)+)
Using the power of negative lookarounds.