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 Films
cd1 & cd2 showing up as two different films
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="Rapscallion" data-source="post: 801515" data-attributes="member: 110943"><p>I have created the following Regex to add handling of 'Part' and 'pt' (a requirement that I had). While I was at it I made the following changes as well;</p><p></p><p>- Added support for 2 digit cd numbers (ie Part 12 of 22).</p><p>- Made the use of separators being - (DASH), _ (UNDERSCORE) and SPACE between each part of the string match between 0-2 times. Therefore it will match both 'Part1of3' as well as ' Part_-_12_of_13' or any combination of the 3 separators. </p><p></p><p>Hopefully someone else will be able to get some use of it also.</p><p></p><p>[-_ ]{1,2}([cC][dD]|[dD][iI][sS][kKcC]|[pP]([aA][rR]){0,1}[tT])[-_ ]{0,3}([0-9]{1,2}[-_ ]{0,2}of[-_ ]{0,2}[0-9]{1,2}|[0-9]{1,2})</p><p></p><p>Cheers</p></blockquote><p></p>
[QUOTE="Rapscallion, post: 801515, member: 110943"] I have created the following Regex to add handling of 'Part' and 'pt' (a requirement that I had). While I was at it I made the following changes as well; - Added support for 2 digit cd numbers (ie Part 12 of 22). - Made the use of separators being - (DASH), _ (UNDERSCORE) and SPACE between each part of the string match between 0-2 times. Therefore it will match both 'Part1of3' as well as ' Part_-_12_of_13' or any combination of the 3 separators. Hopefully someone else will be able to get some use of it also. [-_ ]{1,2}([cC][dD]|[dD][iI][sS][kKcC]|[pP]([aA][rR]){0,1}[tT])[-_ ]{0,3}([0-9]{1,2}[-_ ]{0,2}of[-_ ]{0,2}[0-9]{1,2}|[0-9]{1,2}) Cheers [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
cd1 & cd2 showing up as two different films
Contact us
RSS
Top
Bottom