View Single Post
Old 03-10-2012, 11:46 AM   #3
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 Paxman53 View Post
Does anyone know a regex code that will close a broken quote.
Yup, this one will work with your sample:

Code:
(<p class="calibre6">‘.+?)</p>\s+?<p class="calibre6">(.+?’</p>)
Replace with "\1 \2"

As stated above, this should be used with caution in step by step mode. (Mode: regex dotall)

Last edited by mmat1; 03-10-2012 at 11:48 AM.
mmat1 is offline   Reply With Quote