View Single Post
Old 02-23-2018, 01:41 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,755
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by church mouse View Post
In one book I did edit it by removing the coding manually, but in the last couple of books there have been more than 200 entries per book and I do not know how to code to search and remove all the entries, so I just use a reader and app which displays correctly.
If you're familiar with Calibre Editor or Sigil (or another editor with regex support), you could use regular expressions to find these kinds of tags:

Code:
<\?[^>]+\?>
will find <?pagebreak number="2"?> (and all other processing instructions).

and

Code:
<a id="p\d+>[^<]*</a>
will find <a id="p2></a>, <a id="p3>3</a>, <a id="p4>4</a> etc.
Doitsu is offline   Reply With Quote