View Single Post
Old 08-13-2009, 05:29 PM   #12
oldcrow74
Member
oldcrow74 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: May 2009
Device: sony prs-700bc
Quote:
Originally Posted by oldcrow74 View Post
My thanks and apologies. The expression

(?P<author>.+?) - (\[(?P<series>.+?) (?P<series_index>[0-9]+)\] - )?(?P<title>.+)

did work after all. I must've missed a character when I copied and pasted. Thank you.

However, the expression

(?P<author>[^_]+?) - (?P<title>.+)

does not work. It still drops the last word of the title.

Thanks again. You guys rule.
An update. I actually found that this expression was still buggy for my purposes. I tried taking out the series stuff as such:

(?P<author>.+?) - (\[\] - )?(?P<title>.+)

and now it seems to work exactly the way I wanted it.

One thing I've noticed is that an expression may work when you test it in the Preferences/Advanced dialog, but work differently in real life. The expression above that I thought worked perfectly, only worked in test mode. It still garbled some of my file names when I added files to the library. I would say there's a bug somewhere.
oldcrow74 is offline   Reply With Quote