View Single Post
Old 06-12-2011, 10:58 PM   #5
genright
Junior Member
genright began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2011
Device: laptop mostly, or any other handy screen
Quote:
Originally Posted by penguinaka View Post


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

this one removes brackets around the series section but leaves things in brackets in the title so you get version information imported with the title
Nice one! This wors especailly well with the cases I have, many thanks. I'm still working through how it functions, but likely would never have tried so many nested expresions else. Your other suggestions are also duly noted. I've also used krename from the kde app suite in the past.

@Manichean: Thanks for the tip, I had read through that doc but didnt feel the enlightement yet. In hindsight my first attempts were indeed so flawed

Really appreciate the quick feedback guys. Caliber is awesome
genright is offline   Reply With Quote