03-29-2010, 10:09 PM | #1 | |
Wizard
Posts: 1,434
Karma: 1525776
Join Date: Aug 2009
Location: TAS, Australia
Device: Astak Pocket Pro (Black), 2 x Kindle WiFi (Graphite), iPod Touch 4G
|
Header/Footer removal
Hi All,
I have a few books in .HTML format, with each book having individual .HTML pages for each chapter. Now I am trying to convert these to .EPUB and remove the headers/footers and am really stuck with regex. The header and footers look like this from the .HTML file. Quote:
|
|
03-29-2010, 11:36 PM | #2 |
creator of calibre
Posts: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Code:
(?s)<hr>.*?<p class="nav">.*?</p>.*?<hr> |
03-30-2010, 05:53 AM | #3 |
Wizard
Posts: 1,434
Karma: 1525776
Join Date: Aug 2009
Location: TAS, Australia
Device: Astak Pocket Pro (Black), 2 x Kindle WiFi (Graphite), iPod Touch 4G
|
Thanks for that, worked a treat. Muchly appreciated.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
footer removal help | icy | Calibre | 7 | 08-27-2010 01:21 PM |
Removing header and footer | radicalnomad | Calibre | 2 | 08-26-2010 10:34 AM |
Regexp and header/footer problems | concern | Calibre | 0 | 02-07-2010 03:35 AM |
Header/Footer Problems with conversion | Sydney's Mom | Calibre | 4 | 01-05-2010 11:04 AM |
How to change header/footer font? | mngharry | LRF | 1 | 06-02-2009 03:01 AM |