View Single Post
Old 12-06-2012, 04:24 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,424
Karma: 43260000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by WS64 View Post
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:
Code:
<(/?)div([^>]*?)>
with:
Code:
<\1p\2>
But otherwise, yeah... what kiwidude said. PCRE's . won't match cr/lf characters unless you explicitly tell it to.

Last edited by DiapDealer; 12-06-2012 at 04:42 PM.
DiapDealer is offline   Reply With Quote