Quote:
Originally Posted by kacir
Code:
(?P<title>.+) [(](?P<author>[^)]+)[)]
Here is one of more elaborate examples that would process file with name. Every time I found a file name it couldn't process I tried to refine it:
Author [(- Series #)] - Title
Series is either in [] parenthesis or ()
Code:
^(?P<author>((?!\s-\s).)+)\s-\s(?:(?:[[(]\s*)?(?P<series>.+)\s(?P<series_index>[\d\.]+)(?:\s*[])])?\s-\s)?(?P<title>[^(]+)(?:\(.*\))?
Do not worry, I wrote it, but now, after several years it is very difficult for me to read it without analysis and formatting to several lines ;-)
|
this worked beautifully for me!