View Single Post
Old 02-09-2011, 01:04 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by Ulfrich View Post
Ok these have been posted up several times and I am unfortunately unable to wrap my head around how to create these. Its unfortunate cause I have things named under several different formats. The current one Im working with looks like this for a series.

ebook - Alan Dean Foster - Spellsing 1 - Spellsinger

~~~

SciFi - Christopher Stasheff - Warlock 2 - Spite of Himself

so I'm pretty much tryin to lop off the front end of each file name for the import
You can do what I do and use something like Freecommander and bulk rename those files, easily lopping off the front end. Once this is done the following regex in Adding books should work for you. Just don't ask me to explain it.

Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>[^\-_0-9]+)
DoctorOhh is offline   Reply With Quote