![]() |
#16 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
Perhaps I'd be faster still... but you do seem to assume a far lower level of efficiency in my text editor use than I actually enjoy. - Ahi |
|
![]() |
![]() |
![]() |
#17 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E; Kobo Clara BW
|
Quote:
The thing is that ONLY the number removal part works '\d{1,4}'. If I add any other piece to it, absolutely nothing happens to the selected text. The code you are using does appear to match the reference in Book Cleaner. I've tried everything I can think of, but am at a loss as to how to proceed. This was one of my problems coming in --- the code for removing whatever is in the empty space has no effect. If I do this to the highlighted text... \s*\n+\s* ...nothing happens. I'm leaving the Replace box in Book Cleaner empty. Is that correct? |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E; Kobo Clara BW
|
Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 162
Karma: 24658
Join Date: Sep 2009
Device: PRS-505
|
Well, the simplest thing I can think of is to import the text into Word or Atlantic Word Processor and search for this:
^p^p^#^#^#^p^p And replace with a blank. At least that works for your example text. The way it is, it will only work for 3 digit page numbers. You can modify it for 2 digit and one digit page numbers appropriately. Ofcourse there might be a clever way in Word to set it as 1 or 2 or 3 digits and then you wouldn't need to do that. |
![]() |
![]() |
![]() |
#20 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E; Kobo Clara BW
|
Quote:
I also learned some things from other replies that will be helpful in future projects. Thanks much to all! |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 162
Karma: 24658
Join Date: Sep 2009
Device: PRS-505
|
Great to hear it worked out for you
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with regular expressions | Manichean | Conversion | 10 | 02-03-2011 02:27 PM |
Custom Regular Expressions for adding book information | bigbot3 | Calibre | 1 | 12-25-2010 06:28 PM |
Regular expressions, Calibre and you- an introduction (Archived) | Manichean | Conversion | 80 | 11-11-2010 07:37 AM |
Help with Regular Expressions | ghostyjack | Workshop | 2 | 01-08-2010 11:04 AM |
BookDesigner v5 and regular expressions | ShineOn | Sony Reader | 11 | 08-25-2008 04:06 PM |