Regexp parsing problem. (1 Viewer)

Joco

Portal Member
November 12, 2011
8
0
39
Home Country
United States of America United States of America
Hello.

I have been learning RegExp to use with the My TV Series plugin to parse TV show data from file/folder structure and name. I have been going through the regular-expressions.info tutorial to learn but I am still having a bit of trouble. I apologize if this is posted in the wrong forum.

I organize my shows as such:
\\SERVER\X\shows\Family Guy\S06\E01 - Blue Harvest.avi

I want to extract the series name, season number, episode number, episode title, and file extension. I have managed to construct this fella:

S(?<season>[0-9][0-9])\\E(?<episode>[0-9][0-9])

This can manage to get the episode and season number correctly. I cannot seem to manage to make an expression that will properly parse the series name, file extension, or episode name. Please help.


John
 

HomeY

Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    There is indeed a specific thread for regex requests, you can find it here

    ;)

    With my very limited regexp knowledge, i know you can use '\d' for digits, and extension works with '<ext>'

    For the rest you'll need someone else...
     

    Joco

    Portal Member
    November 12, 2011
    8
    0
    39
    Home Country
    United States of America United States of America
    I have reposted on the appropriate thread. Thank you for your assistance.
     

    Users who are viewing this thread

    Top Bottom