View Single Post
Old 08-16-2009, 11:53 AM   #6
DerSchwarzePrinz
Enthusiast
DerSchwarzePrinz began at the beginning.
 
Posts: 25
Karma: 16
Join Date: Aug 2009
Device: Pocketbook 360, Sony PRS-T1
Quote:
Originally Posted by user_none View Post
Remove header and footer is supported by all formats. What happens is: the input (no matter what format) is converted to html and run though a preprocessor before being turned into an internal OEB book. The preprocessor applies the regex to remove the header and footer as well as doing other things. The OEB is then turned into what ever your output format is.

PM me your PDF and I'll look at it to see what kind of regex you will need to remove the header and footer.
What regular expression should I use for

- xxx -

(xxx = page number, one to three digits)?

I tried to use the following (simple) RE:

\- [0-9]+ \-

But it removes only

- x - (- 1 - to - 9 -)
and
- xxx - (- 100 - to - 999 -)

but not

- xx - (- 10 - to - 99 -)

Whats wrong?

Thanks a lot for your help,
DSP

Last edited by DerSchwarzePrinz; 08-16-2009 at 12:37 PM.
DerSchwarzePrinz is offline   Reply With Quote