Originally Posted by WS64
And actually I would just replace <div with <p and let tidy do the rest
Wow! You're a lot braver than I am. I don't let
Tidy do anything for me.
Just as easy for me to replace:
But otherwise, yeah... what kiwidude said. PCRE's . won't match cr/lf characters unless you explicitly tell it to.