View Single Post
Old 12-05-2013, 03:51 PM   #6
magmanpi
Enthusiast
magmanpi can extract oil from cheesemagmanpi can extract oil from cheesemagmanpi can extract oil from cheesemagmanpi can extract oil from cheesemagmanpi can extract oil from cheesemagmanpi can extract oil from cheesemagmanpi can extract oil from cheesemagmanpi can extract oil from cheese
 
Posts: 30
Karma: 1000
Join Date: Nov 2012
Device: none
Quote:
Originally Posted by DiapDealer View Post
However, if I had to guess, I'd say that whatever search expression you're using isn't taking into account the line breaks/white-space between the two lines of code you're trying to match.

Given that the example you gave is consistent through the code, an expression to find what you're looking for (the one without the </span> involved) could be as simple as:
(make sure you're actually typing the emdash character here)
Code:
—</p>\s+<p class="calibre2">
replace it with an emdash (or emdash - <space> depending on your preference)
OMG! The code worked. I can't thank you guys enough for your help.
Does the Sigil manual have a section on how to write code for regex? I looked in the manual trying to solve this problem but it kinda made my head spin.

Now, about those other code items with </span>?
magmanpi is offline   Reply With Quote