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: 231209" data-attributes="member: 65921"><p>First of all, I'd recommend getting a regex editor. There's no way I could write anything without one (yet). It'd be like being Neo in the dojo without Morpheus. You ain't gonna get to be Flying, A55-Kicking, Smith-Fighting Neo without a Morpheus in your corner to help you out. So go get Expresso (it's free!) and start with the tutorials. Or grab a regex that works and some sample text (i.e. a filename) it's known to work on, and use Expresso to figure out how and why it works!</p><p></p><p>Having said that, this should work for your filenames:</p><p>[CODE](?<series>[\w .,'!&$]*)\\[\w\s0-9]*\\(?<season>[0-9]{1})(?<episode>[0-9]{2}).{3}(?<title>[\w .,'!&$]*)\.[/CODE]</p><p></p><p>Again, it might not be very elegant, but this is my third-ever attempt at writing regex.</p><p></p><p>This is not hard-coded for Entourage. It also doesn't use the "Season 1" foldername to get the season; it uses the filename. And it ignores everything upstream of the "Series" foldername.</p><p></p><p>(P.S. If this does work for you, please add it to the "Expressions/Rules Exchange" thread, so other people can use it, too!)</p></blockquote><p></p>
[QUOTE="Karyudo, post: 231209, member: 65921"] First of all, I'd recommend getting a regex editor. There's no way I could write anything without one (yet). It'd be like being Neo in the dojo without Morpheus. You ain't gonna get to be Flying, A55-Kicking, Smith-Fighting Neo without a Morpheus in your corner to help you out. So go get Expresso (it's free!) and start with the tutorials. Or grab a regex that works and some sample text (i.e. a filename) it's known to work on, and use Expresso to figure out how and why it works! Having said that, this should work for your filenames: [CODE](?<series>[\w .,'!&$]*)\\[\w\s0-9]*\\(?<season>[0-9]{1})(?<episode>[0-9]{2}).{3}(?<title>[\w .,'!&$]*)\.[/CODE] Again, it might not be very elegant, but this is my third-ever attempt at writing regex. This is not hard-coded for Entourage. It also doesn't use the "Season 1" foldername to get the season; it uses the filename. And it ignores everything upstream of the "Series" foldername. (P.S. If this does work for you, please add it to the "Expressions/Rules Exchange" thread, so other people can use it, too!) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom