08-25-2011, 03:47 PM | #1 | |||
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: Nook
|
Detected matching strings but they're not gone after converting
Hello, I'm, trying to replace some strings in Calibre and it detects there are 50 matches, I am replacing
Quote:
Quote:
I've tried another regular expression that does the same but I'm still getting the same result. Quote:
Any idea why is this happening? |
|||
08-25-2011, 04:02 PM | #2 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: Nook
|
Update: I just tried removing pieces from the regular expression until I got to this one which is working:
Quote:
UPDATE 3.: I tried replacing "\s" with ".*" and it worked. Looks like somehow the program had problems detecting the "\s"? Isn't that just white space? I think it's weird because it could match the strings against the regular expression but then after that it wouldn't replace them. Any ideas? I'm going to see if maybe the thing I supposed was a whitespace was not really a whitespace by checking the file with an hex editor, but still, if it wasn't a white space, why would it match against "\s"? Last edited by camilou; 08-25-2011 at 04:09 PM. |
|
08-25-2011, 04:20 PM | #3 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
\s Will match a single whitespace character. You might want to try \s* instead
|
08-25-2011, 05:43 PM | #4 | |||
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: Nook
|
Quote:
Quote:
Quote:
|
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting from Zip to MOBI - Sections not detected | NorthboundTrain | Conversion | 8 | 06-10-2011 10:29 AM |
Matching filenames on device to Calibre DB | T.BugReporter | Calibre | 2 | 04-11-2011 11:33 AM |
Better matching/scanning | lbutlr | Calibre | 3 | 08-04-2010 03:44 PM |
Matching Light for Kobo | dixieknits | Kobo Reader | 2 | 07-19-2010 02:50 AM |
Literary Pattern Matching | kennyc | News | 5 | 12-16-2009 03:12 PM |