| 
			
			 | 
		#1 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615 
				Karma: 8064562 
				Join Date: Aug 2009 
				
				
				
				Device: Sony PRS-505, Kindle 3 KB, iPad2 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Question on search syntax
			 
			
			
			I've created a set of tags to indicate where I obtained a particular eBook.  These use the format of source:xxxx such as source:BaenFree, source:ProjectGutenberg, source:Mobileread, source:Fictionwise, etc. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I want to locate any books in the library that don't have a source tag. I can do this: not tags:"=source:ArthurClassic" and not tags:"=source:Baen eBooks" and not tags:"=source:BaenFree" and not tags:"=source:Goodreads" and not tags:"=source:ManyBooks" and not tags:"=source:Mobileread" But what I really want is a generic search. I tried not tags:"=source:*" but that didn't work. Obviously I don't know how to indicate a match for any and all characters. (And I have a suspicion that this has something to do with regular expressions which I simply don't seem to be able to understand.)  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Code: 
	not tags:"~^source:" Code: 
	not tags:"~^source:."  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | |
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615 
				Karma: 8064562 
				Join Date: Aug 2009 
				
				
				
				Device: Sony PRS-505, Kindle 3 KB, iPad2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 What I really want is to find only the books that have no tag that starts with "source:". These books may or may not have other tags.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615 
				Karma: 8064562 
				Join Date: Aug 2009 
				
				
				
				Device: Sony PRS-505, Kindle 3 KB, iPad2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 
 Thanks again for helping me out.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@Hampshire Nanny - why not  
		
	
		
		
		
		
		
		
		
		
		
		
		
			Code: 
	not tags:"source:" It would exclude books that have a tag with «source:» in the middle or end of a tag, but do such tags actually exist in your library, e.g. Code: 
	«tomato source: bottle» «python source:» «source:» Code: 
	tags:"=source:" Last edited by BetterRed; 07-26-2014 at 01:59 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@Hampshire Nanny: The search I suggested in post 2 should do exactly what you want, find any book that does not have a tag beginning with source:.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Either/Or Search Syntax? | PatNY | Library Management | 4 | 09-05-2013 07:15 AM | 
| command line syntax for search filter | cybmole | Calibre | 5 | 06-26-2013 08:55 AM | 
| Need help with search syntax | PatNY | Library Management | 6 | 05-20-2013 02:41 PM | 
| search question | Gregg Bell | Sigil | 11 | 04-03-2013 06:17 PM | 
| Help with search syntax please. | rwelbourn | Library Management | 3 | 04-16-2011 03:07 AM |