^(?P<author>[^-]+)(\s*-\s*(\[?(?P<series>[^-0-9]+)\s*(?P<series_index>[0-9.]+)?]?)?)?.*?-\s*(?P<title>[^\]{[()]+\w)
this one removes all brackets around the series and anything in brackets in the title section doesn't get imported imported
^(?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
*note - i find it useful to do some file clean up prior to import with a bulk renaming software.
There are 2 that are very good with Flash Renamer being my favorite the other is called Bulk Rename Utility. In these you can enter regex commands in the find and replace to clean up files or wildcards if you don't know how to use regex.
Two other tools I use is ExtractNow which auto extract & deletes archives after extraction in folders and folders of folders without having to manually go there and Opus which replaces windows explorer with a comander style split screen and a view screen so you can inspect whats in any type of file without opening them it also allows you to make customized regex, find & replace rename and other stuff as buttons and place them on the menu bar.
Some of the button I have created and added to the bar on Opus... for example I have a swap author and title button; swap ln, fn button; swap author, series, title button (in any combination); replace by with -; swap ln,fn & ln,fn button; and trim all double spaces and trailing space; and some others.
I use flash renamer first because you can string together a bunch of commands to do in a batch command to run against your files in bulk. The any minor quick fixes i do with buttons from opus when i reinspect to make sure everything is like i like it. Cheers i hope that helps.
Last edited by penguinaka; 06-12-2011 at 02:42 PM.
|