08-19-2008, 07:25 PM | #1 |
Member
Posts: 10
Karma: 474
Join Date: Aug 2008
Device: Sony PRS-505
|
BookDesigner v5 and regular expressions
Hi everyone, it's my first post in this forum.
I have a PRS-505 (great) and I need fix a lot of text from a BookDesigner interface. The problem is: I need get all paragraphs that contents 3 or more dashes. I tried bookdesigner's regular expressions but don't work... I need something like ^*—*—*—*[\n$\r] but is not working (I have the checkbok RegExp checked) are the regular expressions working fine in BookDesigner???? Thank you and good day for everybody!!! |
08-19-2008, 08:03 PM | #2 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
RegEx work fine in Book Designer. I had a post here on this a while back. Just a second while I go find it.
Here: https://www.mobileread.com/forums/sho...554#post105554 |
Advert | |
|
08-19-2008, 08:20 PM | #3 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
This should do what you want:
---\n{1} |
08-19-2008, 11:28 PM | #4 |
Member
Posts: 10
Karma: 474
Join Date: Aug 2008
Device: Sony PRS-505
|
Thank you, but didn't work :-(
It's strange, because BD can't match with a end of line, \n , or $, or \r, etc... example, I have just three text lines in BD: - Hello -Good Morning -Bye -Thanks - One Oneee - Two -Three If I search - BD find all dash If I search e{3} BD match eee If I search \s BD match nothing If I search \sOne BD match One (not match Oneee) If i search \n BD match nothing If i search Three\n BD match nothing |
08-20-2008, 08:54 AM | #5 |
Reader
Posts: 11,504
Karma: 8720163
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
|
So, perhaps you could edit the book in Word (or whatever) first, then drop it into Book Designer.
|
Advert | |
|
08-20-2008, 09:02 AM | #6 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
I've not been able to make "end of line" RegEx matching work in BD either. Most other RegEx stuff works fine, though.
|
08-20-2008, 10:13 AM | #7 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Maybe try \r\n instead of just \n.
|
08-20-2008, 11:30 AM | #8 |
Member
Posts: 10
Karma: 474
Join Date: Aug 2008
Device: Sony PRS-505
|
Ok thanks everyone... finally I tried the text in UltraEdit
|
08-25-2008, 12:28 AM | #9 |
Manic Do Fuse
Posts: 2,312
Karma: 3325462
Join Date: Oct 2006
Device: Sony 500, 505, 350, Kindle 3, DXG, nook, Irex DR800SG, iPad
|
I want to use the regular expressions to delete page numbers in a book. I use \[Pg [0-9]*\] which works well but the footnotes links look just like the page number except they are blue. ( [12] vs [12] )Is there an easy way to tell it not to delete the footnotes using BD or Word?
|
08-25-2008, 12:49 PM | #10 | |
Member
Posts: 10
Karma: 474
Join Date: Aug 2008
Device: Sony PRS-505
|
Quote:
Maybe you can replace temporarily footnotes by others characters... [1] by [x] .... [12] by [xx] Then, you delete all pages and finally restore footnotes. Another way is using regular expressions directly in html file with a plane text editor. In word, you can go to "View-->html code" and work directly. So, you can find footnotes like links (a href="xxxxxx") and Page numbers like just text and use regular expressions for filter them. Last edited by ShineOn; 08-25-2008 at 04:07 PM. |
|
08-25-2008, 04:00 PM | #11 | |
Connoisseur
Posts: 75
Karma: 204999
Join Date: Aug 2006
Location: London
|
Quote:
(That's the Format, and Font buttons within the Search/Replace window; setting it to Black doesn't work) bob Last edited by comtrjl; 08-25-2008 at 04:43 PM. |
|
08-25-2008, 05:06 PM | #12 |
Manic Do Fuse
Posts: 2,312
Karma: 3325462
Join Date: Oct 2006
Device: Sony 500, 505, 350, Kindle 3, DXG, nook, Irex DR800SG, iPad
|
Thanks for the suggestions above, I will give these a try. There are about 800 footnotes.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with regular expressions | Manichean | Conversion | 10 | 02-03-2011 03:27 PM |
Custom Regular Expressions for adding book information | bigbot3 | Calibre | 1 | 12-25-2010 07:28 PM |
Regular expressions, Calibre and you- an introduction (Archived) | Manichean | Conversion | 80 | 11-11-2010 08:37 AM |
Help with Regular Expressions | ghostyjack | Workshop | 2 | 01-08-2010 12:04 PM |
Regular Expressions help needed | Phil_C | Workshop | 20 | 10-03-2009 01:14 AM |