View Single Post
Old 08-31-2014, 01:43 PM   #1
thepauler
Junior Member
thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.thepauler knows what is on the back of the AURYN.
 
Posts: 9
Karma: 9642
Join Date: Sep 2009
Device: iPad Min
Adding with Regex

I need to add a couple of thousand books to my library. The file names are structured like this:

Series-123 Title of Book (Author Name) 1989.txt

I created the following regex to manage the import and it tests out perfectly.


Code:
^(?P<series>.+)-(?P<series_index>\d{1,4}) (?P<title>.+)\((?P<author>.+)\) (?P<published>\d{4})


Once the book imports everything is right except the title, which is simply the file name minus the extension. While I can fix these with a regex on search and replace, I would like to avoid the extra step. Am I missing something in the preferences?

Any help would be much appreciated!

Last edited by thepauler; 08-31-2014 at 01:45 PM.
thepauler is offline   Reply With Quote