View Single Post
Old 04-21-2010, 04:53 PM   #10
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 citac View Post
Finally, it turned out this worked:

^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?(\[?(?P<series>[^0-9\-]+) (- )?(?P<series_index>[0-9.]+)\]?\s*-\s*)?(?P<title>.+)
That looks like the one I use, and I think it's one I wrote - I recognize the optional square brackets

That's what I get for listening to you when you said:
Quote:
all the mentions of command lines, regex, codes in curly brackets are making my head spin.
I believed you when you said your files were in a particular format and I tried to make it simple, not flexible.

I'm really going to have to look at why my simpler expressions threw errors.

Quote:
It doesn't add "Unknown"
It will when you actually add a book to calibre with a blank author.
Starson17 is offline   Reply With Quote