| 
			
			 | 
		#1 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295 
				Karma: 2139988 
				Join Date: Nov 2014 
				
				
				
				Device: bookeen 
				
				
				 | 
	
	
	
		
		
			
			 
				
				How do I copy tags to comments?
			 
			
			
			Hi 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I tried the method below which does not work. - multi edit -search and replace - search field - tags - search for .* (regex) - replace with empty - destionation - comments - apply It does not copy it.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Tags is not really a single value field, it is a list (each tag is really a linked record in the underlying DB)
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295 
				Karma: 2139988 
				Join Date: Nov 2014 
				
				
				
				Device: bookeen 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			But your REGEX is for a single field value 
		
	
		
		
			As you can see, this works  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295 
				Karma: 2139988 
				Join Date: Nov 2014 
				
				
				
				Device: bookeen 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@theducks 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Thanks for the help. DO you know the help url for these patterns? I tried searching but I could not get to anything regarding special uses like this.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@loviedovie - I think you'll need to use a program mode template to populate a custom column, of type 'Column built from other columns', see ==>> The calibre template language 
		
	
		
		
		
		
		
		
		
		
		
		
	
	In particular see these functions ==>> list_item(val, index, separator) and strcat(a, b, ...). You might find something similar in here ==>> Plugboard, template, and custom composite column recipes Curious - why do you want to put the Tags in Comments ? BR  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@loviedovie: note that theducks' solution will replace the comment. If that isn't what you want then you can change the "Mode" box to prepend or append the tag(s) to the comments.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295 
				Karma: 2139988 
				Join Date: Nov 2014 
				
				
				
				Device: bookeen 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@BetterRed 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Thanks for the links. Very helpful. I do not like the tags that came with the books but I do not want to get rid of them, so the comments section sounded like a good place to store them. @chaley thanks for the tip. Btw what does "\1" stand for in theducks's solution"  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Take a look at All about using regular expressions in calibre. Groups (parenthesized search expressions) and group references are explained there. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	And to answer your question: the \1 means the contents of the first parenthesized expression in the search pattern, which in this case is everything.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 FWIW, I have a custom tags column just so I can exclude that columns tags from the Tags that show in the Jacket and on the Contentserver  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 @loviedovie I too would move them to an "oldtags\Old Tags" custom column, rather than polluting Comments for similar reasons - plus: Comments is a downloadable column hence there's a chance you could lose anything you put in it. Such as when you discover a metadata site that has Comments that you really, really like ![]() Having an "Old Tags" column would also allow you to easily dispense with the column entirely, should you decide its not worth having - editing them out of Comments would only be possible with some fancy regex. And you would have have ability to easily and selectively clear "Old Tags" for individual or groups of books, BR  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295 
				Karma: 2139988 
				Join Date: Nov 2014 
				
				
				
				Device: bookeen 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Hi 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Thank you all for great recommendations. Great help here.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| How to "copy" or combine tags in two columns not as a built column? | jecilop | Library Management | 7 | 09-04-2014 08:26 PM | 
| Is it possible to replace the book keeping all the tags, comments, and cover? | Asche | Library Management | 10 | 02-05-2014 05:59 AM | 
| Help to compose a regex to find strings, enclosed in comments tags | Vadim777 | Conversion | 5 | 04-17-2012 01:49 PM | 
| Amazon Tags - Popular tags vs Unique tags. | chrisanthropic | Writers' Corner | 6 | 09-20-2011 12:18 AM | 
| Copy tags to new Calibre library | wsignal | Library Management | 3 | 05-04-2011 03:04 PM |