Well good news for me. I managed to fix the problem with it adding in stuff like "(.html.jpg v1" to the end of the title. I just added in "(?P<publishdate>\()" to the end of the expression that was in the Tyrannosarus Regex thread so that all the stuff about formats would be thrown into the publishdate metadata, and since it's not formatted at all correctly for that, it just gets thrown out entirely.
The ONLY thing I need to fix now is how it adds a "(" to the beginning of the series if the file name has the series written like "Forsyth, Kate - (Witches of Eileanan 2) - Pool of Two Moons (.rtf v0.9)." Right now it gives an output like "(Witches of Eileanan"
I'm not sure why it drops the second parentheses but if I can get it to drop the first as well I should have an expression that should work for almost every book I'm trying to add.
As it stands now my expression looks like this:
Code:
(?P<author>((?!\s-\s).)*)\s-(?:\s((?P<series>.+) (?P<series_index>\d+)((?!\s-\s).)*)\s-)?\s(?P<title>.*) (?P<publishdate>\()
Anyone have any suggestions to fix that last problem?