Quote:
	
	
		
			
				
					Originally Posted by  Justy
					 
				 
				I feel kind of silly asking for help on this same issue again. I found more files to import and these 2 pieces of code which both worked at various times in the past are not giving the expected results now. I suspect that Calibre has changed a bit with all the wonderful updates Kovid & team have been adding for us. 
			
		 | 
	
	
 I just tested the code I gave you previously, and it still works for me.
	Code:
	([^_]+ )(?P<author>[A-Za-z]+) ((?P<series>[^_\d]+)(?P<series_index>\d+)? )?(?P<title>[^_]+)
 My test file names were:
- Genre_AuthorLastName_Title.prc
 
- Genre_AuthorLastName_Series01_Title.prc
 
which gave the following results respectively:
- Title = Title
 
- Author = AuthorLastName
and 
- Title = Title
 
- Author = AuthorLastName
 
- Series= Series
 
- SeriesIndex = 1