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 06-11-2013, 12:01 AM   #1
icychocolatechip
Junior Member
icychocolatechip began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2013
Device: PC
Search expressions

Hello,

Sorry if this has been posted before, I couldn't find anything on the forum, and wasn't able to find what I need from stackoverflow or the python documentation. I want to create a Virtual library with tags "Fiction" but not "Young Adult". So I created a virtual library with "Fiction" as the requirement, and wanted to add in additional restrictions. But, I can't figure out how to search for tags: !=Young Adult properly. I've pretty much tried all possible placements of the quotes, as well as using <> instead of !=. I'm not really sure what else I can do.

Thank you in advance for your help!
icychocolatechip is offline   Reply With Quote
Old 06-11-2013, 12:30 AM   #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: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://manual.calibre-ebook.com/gui....arch-interface
kovidgoyal is offline   Reply With Quote
Advert
Old 06-11-2013, 02:08 AM   #3
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Although it is used in the examples I do not think that the documentation explicitly mentions that the word 'and', 'or' and 'not' are operators that can be used with search terms and that terms can be grouped using brackets.

In the OP request it appears the use of 'not' was missed in the things tried.
itimpi is offline   Reply With Quote
Old 06-11-2013, 02:14 AM   #4
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by icychocolatechip View Post
So I created a virtual library with "Fiction" as the requirement, and wanted to add in additional restrictions. But, I can't figure out how to search for tags: !=Young Adult properly. I've pretty much tried all possible placements of the quotes, as well as using <> instead of !=.
Try:
Code:
not tags:"=Young Adult" and tags:"=Fiction"
DoctorOhh is offline   Reply With Quote
Old 06-13-2013, 02:32 PM   #5
koliberek
Junior Member
koliberek began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2013
Device: K3 (Keyboard)
There is something strange in regex search. I can't imagine how it works:



Pattern is in the beginning, in the middle or even as a part of word. And there is no any special character in the pattern! Is this the way it should work?
koliberek is offline   Reply With Quote
Advert
Old 06-13-2013, 04:23 PM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,733
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by koliberek View Post
There is something strange in regex search. I can't imagine how it works:



Pattern is in the beginning, in the middle or even as a part of word. And there is no any special character in the pattern! Is this the way it should work?
Yes. An unanchored pattern will match any subpart of the item. That is what regexps do.

If you want to be sure that the pattern is matching the beginning, the end, or all of the item then you must include anchor specifications in the regexp. If you put the anchor ^ at the beginning of the regexp then the pattern must match at the beginning of the item. Of you put the anchor $ at the end of the regexp then the pattern must match the end of the item. Include them both to indicate you want both the beginning and the end, that is the entire item.
chaley is offline   Reply With Quote
Old 06-14-2013, 01:17 AM   #7
icychocolatechip
Junior Member
icychocolatechip began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2013
Device: PC
Thank you very much for all the help. It worked out great =)
icychocolatechip is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular Expressions help deamonfruba Library Management 2 06-02-2012 02:09 AM
Regular Expressions littleezza Conversion 1 07-15-2011 11:52 AM
Another help with regular expressions encapuchado Library Management 6 06-21-2011 03:14 PM
Need help with expressions MMAC Library Management 2 04-25-2011 05:49 AM
Help with Regular Expressions ghostyjack Workshop 2 01-08-2010 11:04 AM


All times are GMT -4. The time now is 07:15 AM.


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