View Single Post
Old 11-09-2012, 01:52 PM   #9
Steadyhands
Connoisseur
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
I'm have the trouble with a regex I've been using. It's a slightly modified version of one I found in this thread.

Find
Code:
(“[^”]*?)</p>\s+<p.+>([^“]*?”)
Replace
Code:
\1 \2

Sample
Code:
<p class="calibre1">“The cat</p>

  <p class="calibre1">sat on</p>

  <p class="calibre1">the mat”</p>
Gives me

Code:
<p class="calibre1">“The cat</p>

  <p class="calibre1">the mat”</p>
ie the middle line gets deleted. Why? I thought it might have been the clean source but I turned that off and restarted with the same results.
Steadyhands is offline   Reply With Quote