|
|
#1 |
|
Connoisseur
![]() Posts: 58
Karma: 79
Join Date: Sep 2006
Location: Fairfax, Va
Device: PRS-500, PRS-505, PRS-650, ipod Touch, ipad 2, Droid X, NC
|
Using Find/Replace with BD
![]() Anyone know of a straightforward way to do this just using BD? Many thanks in advance! |
|
|
|
|
|
#2 |
|
Retired & reading more!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,700
Karma: 871861
Join Date: Sep 2006
Location: North Alabama, USA
Device: EZ Reader, Kindle 1, NookColor, iPad 4, iPhone 5
|
I don't know either but would sure be interested in the answer. The way I handled this problem before was to export to MS Word where I knew how to use wildcards. It worked but it would be much easier if I could have done it in BD.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,205
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
if you hit f2, that brings up the search/replace dialog and you can search/replace on a RegExp. I don't have the code handy, but I have done it before and it has worked for me.
__________________
|
|
|
|
|
|
#4 |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,023
Karma: 2422819
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Try this regular expression
\[[0-9]*\] Or try this one: \[[0-9]+\] |
|
|
|
|
|
#5 |
|
Connoisseur
![]() Posts: 58
Karma: 79
Join Date: Sep 2006
Location: Fairfax, Va
Device: PRS-500, PRS-505, PRS-650, ipod Touch, ipad 2, Droid X, NC
|
Awesome, Nate...Nate the Great indeed.
![]() Thanks a ton! |
|
|
|
|
|
#6 |
|
Retired & reading more!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,700
Karma: 871861
Join Date: Sep 2006
Location: North Alabama, USA
Device: EZ Reader, Kindle 1, NookColor, iPad 4, iPhone 5
|
|
|
|
|
|
|
#7 |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,023
Karma: 2422819
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
You are both welcome.
![]() I happened to have a lex & yacc textbook next to me so I looked it up. BTW, the '*' and '+' give slightly different results because '*' matches zero or more characters inside the brackets, and '+' matches one or more characters inside the brackets. [a-z] [A-Z] [0-9] [ ] Each of the preceding is a variation of "match one of what's inside the brackets". They respectively mean look for only lowercase, uppercase, digits, and spaces. Note that the last one is not empty; it has a space in it. Also they can be combined. [0-9a-zA-Z] Please note the lack of spaces. _{a,b} Match what is immediately before the brackets no less than a, no more than b. _? Match zero or one occurrences of what's immediately before the '?'. Very useful for matching negative and positive numbers. \_ Match whatever follows the '\' literally. "match what is in between the quotes literally" All of the above can be combined, but be careful. That is most of what you will need for BD. Warning: I have not tested all of it in BD. But it is standard UNIX stuff from the textbook. It should work. Last edited by Nate the great; 10-11-2007 at 10:56 PM. |
|
|
|
|
|
#8 |
|
Enthusiast
![]() Posts: 31
Karma: 44
Join Date: Feb 2009
Device: none
|
yeah use regexes, definitely the best way.
__________________
Concrete is strong, Iron is Hard. But Grass will Prevail.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Word - Find & Replace | Big Kev | Workshop | 3 | 09-21-2010 06:51 PM |
| REGEX find and replace help please | potestus | Sigil | 13 | 09-18-2010 04:14 PM |
| find and replace, epub | ampsonic | Reading and Management | 3 | 03-02-2010 03:20 AM |
| Find/Replace with regular expression | hydrolith | Sigil | 6 | 03-01-2010 08:42 PM |
| Crashes on find / replace all | mr ploppy | Sigil | 1 | 02-03-2010 12:35 PM |