Galileo OpenBooks

By | 25 Apr 2011

Calibre settings

Enter the following two expressions under Search & Replace in the conversion settings:

  • First expression
    • Search Regular Expression: (<body.*>)(.|\n)*(<div class="main">)
    • Replacement Text: \1\3
  • Second Expression
    • Search Regular Expression: <hr.*><a name="kommentar">(.|\n)*(</body>)
    • Replacement Text: </div>\2

This will cut out the left (contents) and right (ads) sides as well as the comment form. You will get a plain nice eBook.

Leave a Reply

Your email address will not be published. Required fields are marked *

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.