![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,082
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra Colour, Libra 2
|
Regular Expressions help needed
Hi I was wondering if someone can help me?
I have over 100 PDF books to convert to mobi files but every one of those has the author, book title and page number on each page of the PDF. My current process is to manually convert each book to a RTF then do Find/Replace to remove the erroneous details and then manually 'lift' up the text where the removal of those details leaves a gap. I have been told I can use Regular Expressions in Calibre to do this, at least get rid of the author name, book title and page number, but I have no idea how to do it. I have read the tutorial a few times now but its total gibberish to me, i just don't understand it. Is it possible for someone to write an expression for me? I would learn much easier with a written example I could understand and copy. Thanks |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
REGEX is not a ONE SIZE FITS ALL, it needs to be crafted to exactly fit your conditions or it can also remove good stuff, remove a portion, now making a easy job very difficult because a key part of the exact pattern has been flushed. (another way of saying that doing all the right matches in the wrong order can hurt you) ![]() I prefer to use Sigil, where I get to see the found and decide if I want to replace that occurance (and did my replace work as expected ![]() Pages can have a Right and a Left version (2 patterns needed) |
|
![]() |
![]() |
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,082
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra Colour, Libra 2
|
thank you for your reply, yes I had read that page and even downloaded mobipocket creator but I didn't find that program very useful. Looks like I'll just stick to converting them manually for now. Thanks
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regular Expressions | geormes | Calibre | 4 | 08-04-2011 07:09 AM |
Another help with regular expressions | encapuchado | Library Management | 6 | 06-21-2011 03:14 PM |
Help with regular expressions | jevonbrady | Library Management | 6 | 06-21-2011 10:16 AM |
Help with Regular Expressions | ghostyjack | Workshop | 2 | 01-08-2010 11:04 AM |
Regular Expressions help needed | Phil_C | Workshop | 20 | 10-03-2009 12:14 AM |