home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Karyudo" data-source="post: 230871" data-attributes="member: 65921"><p>My first post on the MP Forums...</p><p></p><p>I have a lot of eps that don't get parsed right, but instead of asking for help right away, I thought I'd give writing some regex a try.</p><p></p><p>I found pretty quickly that regex is pretty difficult to parse if you're not a computer. So I looked for a good editor. I found <a href="http://www.ultrapico.com/Expresso.htm" target="_blank">Expresso (http://www.ultrapico.com/Expresso.htm)</a>, which is free, and seems to parse the sort of regex that gets used in TVSeries.</p><p></p><p>I have a bunch of files of the form:</p><p></p><p>W:\Torrents\Arrested Development\Season 1\Arrested Development - S1 E 19 - Best: Man, for the 'Gob'.avi</p><p></p><p>For which I wrote:</p><p>[CODE]</p><p>(?<series>[\w \.,'\:&\-\)\(]*).-..(?<season>[0-9 ]{1,2})..?(?<episode>[0-9 ]{1,2}).-.(?<title>[\w \.:',&\-\(\)]*)\.(?<ext>[^\\]{0,3})$[/CODE]</p><p></p><p>Might not be the most elegant or compact or flexible regular expression ever written, but I'm thinkin' it's not too bad for somebody who didn't even know what regex <strong>was</strong> until this past Tuesday!</p><p></p><p>Now I have to see if it will actually work in MP TVSeries like it does in Expresso...</p></blockquote><p></p>
[QUOTE="Karyudo, post: 230871, member: 65921"] My first post on the MP Forums... I have a lot of eps that don't get parsed right, but instead of asking for help right away, I thought I'd give writing some regex a try. I found pretty quickly that regex is pretty difficult to parse if you're not a computer. So I looked for a good editor. I found [URL="http://www.ultrapico.com/Expresso.htm"]Expresso (http://www.ultrapico.com/Expresso.htm)[/URL], which is free, and seems to parse the sort of regex that gets used in TVSeries. I have a bunch of files of the form: W:\Torrents\Arrested Development\Season 1\Arrested Development - S1 E 19 - Best: Man, for the 'Gob'.avi For which I wrote: [CODE] (?<series>[\w \.,'\:&\-\)\(]*).-..(?<season>[0-9 ]{1,2})..?(?<episode>[0-9 ]{1,2}).-.(?<title>[\w \.:',&\-\(\)]*)\.(?<ext>[^\\]{0,3})$[/CODE] Might not be the most elegant or compact or flexible regular expression ever written, but I'm thinkin' it's not too bad for somebody who didn't even know what regex [b]was[/b] until this past Tuesday! Now I have to see if it will actually work in MP TVSeries like it does in Expresso... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom