RegExp help please: [ \(]+([1-9]of[1-9]+)[\)] is broken after 9.11 upgrade
#1
Question 
I used to use:
<regexp>[ \(]+([1-9]of[1-9]+)[\)]</regexp>
to stack my files like:
Movie Name (2009) (1of2).avi
Movie Name (2009) (2of2).avi

and

It (1983) (1of4).avi
It (1983) (2of4).avi
It (1983) (3of4).avi
It (1983) (4of4).avi


It worked fine up until I upgraded to 9.11, now it doesn't stack them at all.
I also get a log error of:
ERROR: Invalid video stack RE ([ \(]+([1-9]of[1-9]+)[\)]). Must have 4 captures.

I have also tried:
([ \(]+[1-9]+of+[1-9]+[\)])
[ \(]+([1-9]+of+[1-9])+[\)]

Same thing, nothing.
I read all the wiki entries, and links, but the whole; no one or three only four, thing makes no sense.

Any ideas on how to make it work with the 4 captures thing?
Reply
#2
Ok, I know it's bad etiquette to answer your own question, but i finally figured it out. It should now be:
<regexp>(.*?)([ \(]+[1-9]+of+[1-9]+[\)])(.*?)(\.[^.]+)$</regexp>

Hope this helps other (?of?) stackers out there. Or a mod can delete it. Thanks for just being there xmbc.org.
Reply

Logout Mark Read Team Forum Stats Members Help
RegExp help please: [ \(]+([1-9]of[1-9]+)[\)] is broken after 9.11 upgrade0