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-03-2016, 06:36 PM   #1
fncll
Enthusiast
fncll began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Oct 2002
Location: AK
Regular Expressions search in Book Viewer

I regularly use the regex capability of the Quality Check plugin to find books. However, once I have the list of books matching the pattern, I don't see a way to find the match within each book since Book Viewer doesn't, to my knowledge, support RegEx in its search.

For example, I search my whole library for:
Code:
\ssough\s
But then I when I want to find the particular place in the book, I have to search through all the matches for
Code:
sough
to find the true match.

Is there a way to use a RegEx search on an individual book's text?
fncll is offline   Reply With Quote
Old 03-03-2016, 11:29 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,526
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, there isn't. Search in the viewer is run using qt webkit, and it has no facility for regexes. Youcan convert your book to txt and run your query on the txt file using your favorite txt editor instead.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-03-2016, 11:44 PM   #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,442
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Or use the Book Editor (all text files scope), Just don't SAVE when done
theducks is offline   Reply With Quote
Old 03-04-2016, 12:03 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,526
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cant use the book editor as there it searches in the code view, which means you cannot match text that spans multiple html tags.
kovidgoyal is offline   Reply With Quote
Old 03-04-2016, 12:46 PM   #5
fncll
Enthusiast
fncll began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Oct 2002
Location: AK
Bummer. Thanks. Converting to text and searching would be sadly slower than repetitively clicking to find the "right" match (I do this multiple times a week often through scores of books each time). And thanks (kind of for the note about the book editor search...saves me some time trying to figure out why that didn't work when I'd attempted to search that way.
fncll is offline   Reply With Quote
Advert
Old 03-04-2016, 05:52 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,995
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@fncll - FWIW and only appropriate if you search for the same thing in multiple books.

I ensure all my books have a format that my desktop search tool can handle, most recently that's primarily been Windows Search, which has improved over time. I am currently trialling X1 - impressive, not free though.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with regular expressions davy39 Library Management 0 10-16-2015 05:11 AM
Help with regular expressions MostlyCarbon Library Management 0 02-04-2012 04:00 PM
Regular Expressions geormes Calibre 4 08-04-2011 08:09 AM
Help with regular expressions jevonbrady Library Management 6 06-21-2011 11:16 AM
Custom Regular Expressions for adding book information bigbot3 Calibre 1 12-25-2010 07:28 PM


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


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