2009-03-18, 17:25
Hi,
Ive been trying for hours to create a suitable regex to import my multipart tv episodes, ive searched all over the forum and the manual and cant find anything that works. I have my episodes stored like this
Showname\Season 1\01 - Episode 1
Showname\Season 1\02 - Episode 2
Showname\Season 1\03 & 04 - Episode 3 + Episode 4
I can import all of the single episodes no problem, but im having loads of trouble trying to make a regex to 'loop' through the multipart episodes and pick up the other episode numbers. I have several regexs ive tested on different sites, and they all seem to pick up the numbers correctly. I was hoping someone could see what im doing wrong. So far i have these (in my advancedsettings.xml file).
Season ([0-9]{1,3})\\([0-9]{1,3})(?:[& ]([0-9]{1,3})?)+
Season ([0-9]+)\\([0-9]{1,3})[ &]+([0-9]{1,3})?+
Season ([0-9]+)\\([0-9]{1,3})[ &]+(([0-9]{1,3})?+)
Season ([0-9]+)\\([0-9]{1,3})[ &]+([0-9]{1,3})?
Ive tried them singularly and in different groups. If anyone can see what im doing wrong it would stop me going mad.
Cheers.
Ive been trying for hours to create a suitable regex to import my multipart tv episodes, ive searched all over the forum and the manual and cant find anything that works. I have my episodes stored like this
Showname\Season 1\01 - Episode 1
Showname\Season 1\02 - Episode 2
Showname\Season 1\03 & 04 - Episode 3 + Episode 4
I can import all of the single episodes no problem, but im having loads of trouble trying to make a regex to 'loop' through the multipart episodes and pick up the other episode numbers. I have several regexs ive tested on different sites, and they all seem to pick up the numbers correctly. I was hoping someone could see what im doing wrong. So far i have these (in my advancedsettings.xml file).
Season ([0-9]{1,3})\\([0-9]{1,3})(?:[& ]([0-9]{1,3})?)+
Season ([0-9]+)\\([0-9]{1,3})[ &]+([0-9]{1,3})?+
Season ([0-9]+)\\([0-9]{1,3})[ &]+(([0-9]{1,3})?+)
Season ([0-9]+)\\([0-9]{1,3})[ &]+([0-9]{1,3})?
Ive tried them singularly and in different groups. If anyone can see what im doing wrong it would stop me going mad.
Cheers.