View Single Post
Old 12-28-2012, 06:50 AM   #9
Doitsu
Wizard
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: 1,944
Karma: 4633612
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by wobohohoho View Post

Code:
 
    <div id="printheader_crumbtrail">
      &gt; Front of Book &gt; Conflicts of interest: none declared
    </div>

Question is, how do I find and replace these tags (or what regex do I use)?
You could use the following very simple regular expression:

Find: <div id="printheader_crumbtrail">\s+(.*?)\s+</div>
Replace: <h3>\1</h3>

However, before you do that you may want to search for dedicated CHM-to-EPUB converters first. There are a couple of standalone programs and some free websites, e.g. Zamzar that will convert .chm files to epubs.
You could then use Sigil to fine-tune the epub.
Doitsu is offline   Reply With Quote