View Single Post
Old 08-08-2014, 02:25 PM   #2
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)
You could do it with a regex, but I think DiapDealer's sample editor plugin might do a better job. Will require manually configuring the config file. Nope, doesn't seem to be configurable. He might add in link tag support, but in the meantime...

Hmmm. From a suggestion of mine in the Modify EPUB expansion discussion: https://www.mobileread.com/forums/sho...83#post2801083

Search:
Code:
<a href="[^<>]*">((?:(?!<(?:a|/a)).)*)</a>
Replace:
Code:
\1
How does that look? (In terms of working, not reading. )

Should handle nested tags. (And a byproduct is that if, for some godawful reason there are nested link tags which should NEVER happen, it'd still work. I could probably do this the short way, then, with lazy searching, but I like this masterpiece, plus I like copy-pasting previous solutions. )

Last edited by eschwartz; 08-08-2014 at 02:40 PM.
eschwartz is offline   Reply With Quote