Thread: Regex examples
View Single Post
Old 07-17-2015, 12:16 AM   #476
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Tested in calibre editor on the content:

Code:
    <p><a href="#13" id="13-fn">13.</a> bla bla bla</p>

<p>alb alb alb</p>

  <p><a href="#14" id="14-fn">14.</a> bla bla bla</p>

<p>alb alb alb</p>

  <p><a href="#15" id="15-fn">15.</a> bla bla bla</p>

<p>alb alb alb</p>

  <p><a href="#16" id="16-fn">16.</a> bla bla bla</p>

<p>alb alb alb</p>
And my original code worked just fine, becoming:
Code:
    <p><a href="#13" id="13-fn">13.</a> bla bla bla</p>

<p>alb alb alb<a href="#13" id="13-fn">13.</a></p>

  <p><a href="#14" id="14-fn">14.</a> bla bla bla</p>

<p>alb alb alb<a href="#14" id="14-fn">14.</a></p>

  <p><a href="#15" id="15-fn">15.</a> bla bla bla</p>

<p>alb alb alb<a href="#15" id="15-fn">15.</a></p>

  <p><a href="#16" id="16-fn">16.</a> bla bla bla</p>

<p>alb alb alb<a href="#16" id="16-fn">16.</a></p>

So I'm not sure what problem you were having.
As for post #474 I am not sure what, if any, thought processes were running through my mind!

Last edited by eschwartz; 07-17-2015 at 12:19 AM.
eschwartz is offline   Reply With Quote