Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2023, 03:16 AM   #1
madeleinelevy
Enthusiast
madeleinelevy began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jun 2014
Device: Paperwhite
Search/Replace Problem

I am trying to search for "Kirkus Review Review" in comments and replaced it with "Kirkus Review". it doesn't work.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2023-03-27 .png
Views:	125
Size:	240.5 KB
ID:	200650  
madeleinelevy is offline   Reply With Quote
Old 03-27-2023, 04:58 AM   #2
Sunlite
Addict
Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.
 
Sunlite's Avatar
 
Posts: 206
Karma: 547516
Join Date: Mar 2008
Location: Berlin, Germany
Device: KObo Clara, Kobo Aura, PRS-T1, PB602, CyBook Gen3
It looks like there might be two spaces in the underlined string instead of one as in the search string.
Sunlite is offline   Reply With Quote
Advert
Old 03-27-2023, 07:44 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
change the mode to REGEX
and search for
Code:
Kirkus Review\s+Review
The s+ means one or more whitespace (any kind)
theducks is online now   Reply With Quote
Old 04-06-2023, 12:01 AM   #4
madeleinelevy
Enthusiast
madeleinelevy began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jun 2014
Device: Paperwhite
I see what you mean with the space.
Using REGEX, however, did not work.
Thanks you all the same.
madeleinelevy is offline   Reply With Quote
Old 04-06-2023, 11:14 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,899
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:
Originally Posted by madeleinelevy View Post
I see what you mean with the space.
Using REGEX, however, did not work.
Thanks you all the same.
Well you could get really wild and use .+? if you are positive a second 'Review'
will not satisy the parrern.

Case sensitive and NOT dot all.
Manual S&R all the way. Just too risky to use Replace all
theducks is online now   Reply With Quote
Advert
Old 04-06-2023, 11:57 AM   #6
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,675
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Copy the HTML of your comments section into regex101 (Python flavour) and then try the regexes to see what's happening:

https://regex101.com

EDIT: Even better, use the 'Save' button on the left and send the provided link so we can play around with it

Last edited by ownedbycats; 04-06-2023 at 12:02 PM.
ownedbycats is online now   Reply With Quote
Old 07-18-2023, 12:30 PM   #7
madeleinelevy
Enthusiast
madeleinelevy began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jun 2014
Device: Paperwhite
https://regex101.com/delete/ComODBXX...5297YOT9OuVAHE

Is this what you meant?
madeleinelevy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'search & replace' - problem calimero66 Conversion 5 10-23-2012 09:26 AM
A Search and Replace problem AJ Starr Library Management 2 10-20-2011 11:06 PM
Search and Replace Problem FrozenInferno Conversion 11 08-13-2011 01:29 PM
Search and Replace Problem FrozenInferno Calibre 0 08-05-2011 08:47 PM
Search and Replace problem naro_c Conversion 5 02-25-2011 12:59 AM


All times are GMT -4. The time now is 10:45 PM.


MobileRead.com is a privately owned, operated and funded community.