| 
	|||||||
![]()  | 
            
        
    
| 
             | 
        Thread Tools | Search this Thread | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 15 
				Karma: 10 
				Join Date: Dec 2019 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Using RE to extract pattern from custom column into another custom column
			 
			
			
			This is a really basic question so thanks for being patient. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I have a custom column from the Overdrive plugin (thanks jhowell!) that shows the waiting time for my holds: for example a row would look like: 05H@library1, 08@library2, 09@library3 I am trying to create another custom that just shows that I have a hold on this book e.g. H@library1 (the re pattern would be like like H@[a-z1-9]+) I've used regular expression but I don't know how to reference the custom columns... and I was a bit confused by the help files.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905 
				Karma: 47303824 
				Join Date: Jul 2011 
				Location: Sydney, Australia 
				
				
				Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Each column has a lookup name. For a custom column, it will start with a "#". You don't enter this when creating a custom column, but, all references to it need it. Once you have the lookup name correct, it is used in the same way as an inbuilt column. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	For example, if you created the column as "od_holds", then simplest template with it would be: Code: 
	{#od_holds}
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Adding custom column with any lookup-name gives me empty column as a result? | Ahu Lee | Library Management | 16 | 06-09-2019 01:14 PM | 
| Move selected data from series column to a new custom column | fvdham | Library Management | 3 | 06-02-2017 04:49 PM | 
| Extract PDF text and store in custom column | diazlaz | Development | 2 | 12-30-2013 11:00 PM | 
| Custom column returns value based on value of another custom column? | calvin-c | Calibre | 3 | 09-14-2013 03:24 PM | 
| how to move value(s) of tag column to a custom made column | zoorakhan | Library Management | 0 | 12-08-2012 04:53 AM |