View Single Post
Old 01-30-2023, 09:17 AM   #7
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,370
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by enuddleyarbl View Post
Code:
<p><br class="calibre1" id="filepos21832"/></p>
<p class="calibre9"></p>
<p><span class="calibre3 bold">O</span></p>
<p><span class="calibre4 bold">NE:</span></p>
<p><span class="calibre3 bold">T</span></p>
<p><span class="calibre4 bold">HE</span></p>
<p><span class="calibre3 bold">Y</span></p>
<p><span class="calibre4 bold">EARS 583-590 AFE</span></p>
<p class="calibre2"></p>
<p><span class="calibre3 bold">H</span></p>
<p><span class="calibre10 bold">E</span></p>
<p><span class="calibre3 bold">I</span></p>
<p><span class="calibre10 bold">S</span></p>
<p><span class="calibre3 bold">E</span></p>
<p><span class="calibre10 bold">NTERED IN THE</span></p>
<p><span class="calibre3 bold">L</span></p>
<p><span class="calibre10 bold">ISTS OF THE</span></p>
<p><span class="calibre3 bold">W</span></p>
<p><span class="calibre10 bold">ORLD</span></p>
<p><br class="calibre1"/></p>
Just FYI (and yes, I'm on my computer now ) with the KF8 code you would use the following passes:

Code:
Pass 1: 
Find: <p><br class="calibre1" id="filepos.*?"/></p>\s*<p class="calibre9"></p>
Replace: leave blank

Pass 2: 
Find: <p><span class="calibre(4|10) bold">(.*?)</span></p>
Replace: <h4>\L\2\E</h4>

Pass 3: 
Find: <p><span class="calibre3 bold">(.*?)</span></p>
Replace: <h3>\1</h3>

Pass 4: 
Find: </h3>\s*<h4>(.*?)</h4>
Replace: \1</h3>

Pass 5: 
Find: </h3>\s*<h3>
Replace: single space

Pass 6:
Find: </h3>\s*<p class="calibre2"></p>\s*<h3>(.*?)</h3>
Replace: single space<span>\1</span></h3>

Pass 7: 
Find: <p><br class="calibre1"/></p>
Replace: leave blank
The result is identical to the first "after" image.
Turtle91 is offline   Reply With Quote