|
|
#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:
|
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Code:
(?s)<hr>.*?<p class="nav">.*?</p>.*?<hr> |
|
|
|
| Advert | |
|
|
|
|
#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.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| footer removal help | icy | Calibre | 7 | 08-27-2010 02:21 PM |
| Removing header and footer | radicalnomad | Calibre | 2 | 08-26-2010 11:34 AM |
| Regexp and header/footer problems | concern | Calibre | 0 | 02-07-2010 04:35 AM |
| Header/Footer Problems with conversion | Sydney's Mom | Calibre | 4 | 01-05-2010 12:04 PM |
| How to change header/footer font? | mngharry | LRF | 1 | 06-02-2009 04:01 AM |