View Single Post
Old 02-23-2012, 03:36 PM   #4
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by cybmole View Post
if I read that correctly it's blocking any extra instances of < - will it cope with embedded style things like <em or < i inside of the main p tagged paragraphs ?
e.g. some of the paragraphs have extra embedded styles like:
You're right, any <span>, <i> etc. will be not so good. ...

Actually
Code:
(<p.*?</p>)(\s*?<div>)
should do it, but test it carefully.

I'm not shure, if regex.dotall will work at 0.42, try to add a (?s) to the search-statement.

>>or could I use a .p+div class in CSS ?
if you realy want to change any <div> which follows a </p>, why not ?

Last edited by mmat1; 02-23-2012 at 04:22 PM.
mmat1 is offline   Reply With Quote