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="joz" data-source="post: 646847" data-attributes="member: 70244"><p>Hi all,</p><p></p><p>Wonder if someone can help me out solving this, I totally suck @ regex!</p><p>I need a parsing expresion that covers the following scenario (as an example I picked one tvserie path);</p><p></p><p>\Fawlty Towers\Season 01\1-A touch of Class.avi</p><p></p><p>That's the general naming of my filenames. The dash between episode and title (as in respectively "1" and "A touch of class") can have spaces around it. Besides that I need to cover my double episode in one file situation which I have in "01&02-title" format. Again by this example spaces around the & sign are optional as well as around the dash.</p><p>The last situation I need to handle is the lack off the title name, then the files look like "01.ext" or "1.ext" (usualy the former and 01&02.ext ofcourse).</p><p></p><p>This is my sorry try @ getting there;</p><p>\\(?<series>)\\Season (?<season>[\d]+)\\((?<episode>[\d]+)) ([\s]*&[\s]*((?<episode2>[\d]+))? ([\s]*-[\s]*))((?<title>)\.(?<ext>)$</p><p></p><p><a href="https://forum.team-mediaportal.com/my-tvseries-162/expressions-rules-exchange-21977/index2.html#post317727" target="_blank">Based upon this example</a></p></blockquote><p></p>
[QUOTE="joz, post: 646847, member: 70244"] Hi all, Wonder if someone can help me out solving this, I totally suck @ regex! I need a parsing expresion that covers the following scenario (as an example I picked one tvserie path); \Fawlty Towers\Season 01\1-A touch of Class.avi That's the general naming of my filenames. The dash between episode and title (as in respectively "1" and "A touch of class") can have spaces around it. Besides that I need to cover my double episode in one file situation which I have in "01&02-title" format. Again by this example spaces around the & sign are optional as well as around the dash. The last situation I need to handle is the lack off the title name, then the files look like "01.ext" or "1.ext" (usualy the former and 01&02.ext ofcourse). This is my sorry try @ getting there; \\(?<series>)\\Season (?<season>[\d]+)\\((?<episode>[\d]+)) ([\s]*&[\s]*((?<episode2>[\d]+))? ([\s]*-[\s]*))((?<title>)\.(?<ext>)$ [URL="https://forum.team-mediaportal.com/my-tvseries-162/expressions-rules-exchange-21977/index2.html#post317727"]Based upon this example[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom