Quote:
Originally Posted by Manichean
The easiest way would be adapting the regex to the filename, not vice versa.
|
The regex posted by kiwidude is similar (identical?) to one that's been kicking around for ages. It's lengthy and complex because it has lots of lookahead and options to parse a wide variety of filenames. Basically, it will handle filenames that have metadata in the order: author, series, series_index, title where they are separated in any one of a wide variety of ways or where some parts are missing. Occasionally someone will get energetic and encrust the regex with some more options, which makes it flexible but dense to read.
Most people keep a couple of fancy regex expressions around for different order filenames, such as, title first, title last, etc.
I'd suggest testing your filenames against some of the available regex expressions. If none work, then I agree with Manichean that modifying the regex is the next step, but I wouldn't start from the complex encrusted regexes you find, as they can be intimidating if you haven't gotten a handle on the basics.
If he asks for help, he should post some sample filenames he has, then I'm sure that help will quickly be offered.