MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Conversion (https://www.mobileread.com/forums/forumdisplay.php?f=235)
-   -   Header Footer- New Updates (https://www.mobileread.com/forums/showthread.php?t=119490)

lmccurry78 02-01-2011 12:54 PM

Header Footer- New Updates
 
I noticed the delete header and delete footer options are no longer available in the new update. I had figured out hour to remove the repetitive Amber pdf header in the previous versions by using the following:

(<A name=\d+>\s*</a>)?\s*(<[biu][^>]*>)?\s*Generated\s+by\s+(ABC)?\s+Amber[^<]*(<a\shref=.*?processtext.*?>)?\s*(.*?processtext. *?</a>)?(</[ibu]>)?\s*(<br>\s*)?

However, now it does not remove and replace when I type in:
Generated by ABC Amber LIT Converter, http://www.processtext.com/abclit.html

Any suggestions??

Also, is there an expression to use to delete page numbers found in footers?

ldolse 02-01-2011 01:17 PM

https://www.mobileread.com/forums/sho...0&postcount=61

https://www.mobileread.com/forums/sho...d.php?t=118570

https://www.mobileread.com/forums/sho...d.php?t=118569

lmccurry78 02-01-2011 02:00 PM

Wow, way too complicated. I'll just live with the funky text. I have to admit I like the older version better. Any way to revert?

ldolse 02-01-2011 02:04 PM

The Search and replace feature is basically identical to the old feature. Just ignore the 'replace' box and use the 'search' box just like you used to use the remove header/footer options.

user_none 02-01-2011 02:06 PM

The new option made no changes to how the expression is applied to the text. The only difference is you can now specify replacement text instead of it only removing.

lmccurry78 02-01-2011 02:17 PM

I tried using the expression that I used before (see original post) but it doesn't work in the new feature. I'm not a techie so I don't understand how to write the expression that I need.

Manichean 02-01-2011 04:33 PM

Well, the Amber LIT spam comes in many forms. The expression you typed above seems to be pretty general, but not general enough, it seems. The third link ldolse posted above is a relatively simple tutorial for regular expressions, read that, figure out how to adapt the expression. It's not as complicated as it sounds.


All times are GMT -4. The time now is 10:58 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.