View Single Post
Old 04-18-2011, 09:56 AM   #19
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Justy View Post
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:
  1. Genre_AuthorLastName_Title.prc
  2. Genre_AuthorLastName_Series01_Title.prc
which gave the following results respectively:
  1. Title = Title
  2. Author = AuthorLastName

    and
  3. Title = Title
  4. Author = AuthorLastName
  5. Series= Series
  6. SeriesIndex = 1
Starson17 is offline   Reply With Quote