Need help with RegEx matching stubborn filenames
#1
These are two paths to tv shows that will not sync to the library with XBMC. I need help writing the regular expression for these videos. All I need to do is write some static for the first part (because there is only one season of each series. It would look something like this... I tried to look at one of the examples, but I couldn't make sense of how to apply it to this...

Code:
<regexp>Band.Of.Brothers /Ep[00-9]/</regexp>
<regexp>Life /E[00-9]/</regexp>

NB: I cannot change the filenames.

I know I am not very skilled at RegEx, so if somebody could help me out that would be much appreciated. Thank you!

/home/media/Videos/TV/Band.Of.Brothers.2001.Blu-Ray.1080p.x264.DTS-WiKi/Band.Of.Brothers.Ep05.2001.BluRay.1080p.x264.DTS-WiKi.mkv

/home/media/Videos/TV/Life BluRay BBC 1080p x264 H@M/Life E01 BluRay BBC 1080p x264 [email protected]
Reply
#2
Hey Your post actually pointed me in the right direction to solve my problem.
So i figured it would be only fair to point u as well :-)

just read here:
http://wiki.xbmc.org/index.php?title=Adv...out_Season

You have to include this regex "<regexp>[/\._ \-]([0-9]+)</regexp>" at the end of the default list you see above into the advancedsettings.xml. (create one if you dont have one) Worked fine for me for Band of Brothers :-).


best regards
Reply
#3
That didn't work. I'm just going to use symbolic links....
Reply

Logout Mark Read Team Forum Stats Members Help
Need help with RegEx matching stubborn filenames0