View Single Post
Old 04-06-2010, 10:39 AM   #3
Spiffy
Groupie
Spiffy has a complete set of Star Wars action figures.Spiffy has a complete set of Star Wars action figures.Spiffy has a complete set of Star Wars action figures.Spiffy has a complete set of Star Wars action figures.Spiffy has a complete set of Star Wars action figures.
 
Posts: 160
Karma: 416
Join Date: Apr 2010
Device: Astak EZ Reader Pro AND Sony PRS-505
Quote:
Originally Posted by Dopedangel View Post
I had the same problem so I started using booksorter
to rename my files to

Author - Series # - Title.lit

http://iterati.org/ebookTools/BookSorter/Default.aspx

then used this for the add to

(?P<author>[^_-]+) -?\s*(?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_].+) ?

I did see somewhere on the forum the regex you are looking for but couldn't find it
Your standard naming includes no brackets, right?

Another way to do this DID occur to me this morning. Doing it in discrete steps.

First, importing the books without a series on their own, with a fairly standard regex.

Then going back and CHANGING the regex to expect a series and importing THOSE books.

But I guess I still would have to deal with the square brackets. I either have to have a way to mass remove them, or mass ignore them in an import.

The second problem, the format occasionally being at the end in round brackets, I suppose I just have to live with (and manually erase after the fact).
Spiffy is offline   Reply With Quote