View Single Post
Old 07-05-2010, 09:39 PM   #1
TheEldest
Junior Member
TheEldest began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: Kindle 2
Importing RegEx Line

In the event that anyone uses the same system that I do for naming books (or something similar) here is the RegEx code I use for importing:

(?P<author>[^_-]+) - (\((?P<series>[^-]+) - Book (?P<series_index>\d\d?)\) )?(?P<title>[^-]+)

My file names are like:
Last, First - (Series Name - Book 01) Title of the book.txt
TheEldest is offline   Reply With Quote