View Single Post
Old 09-30-2015, 11:00 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,135
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ni_c View Post
good stuff, will install that, see how it goes,

fwiw, the regex expression worked beautifully for what i actually wanted, converting destination footnote links into dual direction ones

first gave footnotes ids like id="f-1", id="f-20" etc

then converted destination placeholders like
<a id="filepos789849"></a>20.

using regex search expression
"></a>(.*?)

and replace expression
" href="Chapter-01.html#f-\1">\1</a>

resulting in
<a id="filepos789849" href="Chapter-01.html#f-20.">20.</a>

only needed to hit "replace and find" till the end of each chapter, change chapter numbers and continue, very quick, then just used normal mode to find ."> and replace with "> (to correct the ids)
I would pick a safer capture pattern to avoid strays

(\d+)

Only a Integer Number (any amount digits)
theducks is offline   Reply With Quote