![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
|
How to search Author column for "The " or "A "
I am trying to search my Author(s) column for "The " or "A ". When I search for "The " I get a great number of results including Theo etc.
What I am trying to do is find those books that have the author and title reversed. I can't see how to use regex to search the author column. I don't want to search and replace. Just to find these books so I can "eyeball" them. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,978
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:
![]() It has all sorts of metadata checks (but not the A or The) Code:
title:="~^The" |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
|
What option? and wouldn't that code get titles with the?
I look at Quality Check and see that Search ePubs searches inside the epub (not what I want). I only want to check the author field. I am looking for those books that have the title and author switched or the author not filled in correctly. It seems that the quality check needs to look inside the epub to find this information. I just want to be able to search the author field for "the " or "A " Is there no way to search for "the" followed by whitespace just in the Author column without having to go through every file. I started running the quality check but it will take hours for the entire library. Longer than searching individually |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Using "~" at the beginning of a search match activates regex mode.
"^" is the regex symbol for beginning-of-string. "~^The" matches the word "The", using regex to only match at the beginning of the field. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
|
Thank you. I had somehow missed using the tilde. I finally got what I needed from "~The\s"
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,978
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:
A MD check on 5K books takes less than 5min on a lowly P4 running XP There are also many Book checks, and yes, those do take time, but not hours. |
|
![]() |
![]() |
![]() |
#7 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
![]() |
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
|
|
![]() |
![]() |
![]() |
#9 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
|
Quote:
My problem was finding how to use regex to check and narrow it down. I use the Quality check plugin for other things like once in a while to check the author search field, formatting author initials etc. |
|
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
|
Thank you for the help. I have been able to find most what I need with using "~\ssearchtext\s" however I am having problems figuring how to search for ( or ) with regex. I tried escaping them with \( but it didn't work. Any suggestions?
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,389
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
When you search in calibre you are talking to two processors, calibre and regular expression parsing. If you are trying to escape regular expression metacharacters use two backslashes. The first will be eaten by the calibre parser, and the second by the regular expression parser.
|
![]() |
![]() |
![]() |
#12 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |
Question: addition of "virtual libraries" (was "base search restriction") | chaley | Library Management | 53 | 04-15-2013 12:52 PM |
Custom column: "Updated date", when adding new "versions" of the same file? | enriquep | Library Management | 16 | 11-03-2011 10:46 AM |
Question - Does iLiab have the "search" & "annotation, highlighting" features? | HiSoC8Y | iRex | 5 | 07-01-2009 04:37 PM |