View Single Post
Old 04-15-2015, 11:46 AM   #4
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: 31,094
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 LadyKate View Post
Thank you for the quick find for most initials problems.

I am still trying to figure out how regex in calibre search works as I use regular expressions a lot when editing html and it is logical to clean up titles and authors using it.

For Instance, I really want to search for the case of "Aa " in authors as it occurs frequently enough that the second initial is mistakenly in lower case. I just am having a bit of a time getting the regex to match "Aa " versus darn near everything.

For instance. How do I use regex to search for AA Name? If I use [A-Z][A-Z] [A-Z]. which I expect to match to AA Name it matches "Orbit Various Authors" and "Various Author" as well as the expected "AA Name".

As two uppercase characters followed by a space, an uppercase character and then anything is how I translate the search string the results confuses me.

I guess I'm looking for a lot more info about how regex works inside calibre as compared to in say edit pad pro.
did you remember to precede your search term with the REGEX flag "~
(there are examples on the Help:GUI Search & Sort section
theducks is offline   Reply With Quote