View Single Post
Old 08-12-2009, 08:32 PM   #4
oldcrow74
Member
oldcrow74 began at the beginning.
 
Posts: 16
Karma: 10
Join Date: May 2009
Device: sony prs-700bc
I have a similar need. I have filenames that have multiple hyphens. I want everything after the first hyphen to be considered the title. When I use this string:

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

everything after the rightmost hyphen is considered the title. I need it to be the leftmost.

Thanks.
Bob
oldcrow74 is offline   Reply With Quote