Quantcast
Channel: MCEBuddy 2.x
Viewing all articles
Browse latest Browse all 10715

Commented Unassigned: Title Rename - Regex Replace [1793]

$
0
0
The new facility to "Regex.Match / Update to" the Title of a file is a good function but in Australia some of the TV channels "pollute" the Title with certain things e.g. New Episodes they append "- New" and sometime include other information in regards to new shows e.g. "(Includes sneak peak of ...)", instead of having to create an entry for each combination it would be nice to be able to have an entry process as a Regex.Replace rather than a Regex.Match, set to New Value.

To remove the - New an entry could be setup Search: (^.*) - New.*$ Replace: $1

Would be good to be able to "compound" these entries also as the TV Channel does this also e.g.

The Big Bang Theory - New (Includes Sneak Peak of Blah Blah)

Using the 2 Regex.Replace Entries

Search: (^.*) - New.*$ Replace with: $1
Search: (^.*) \(Includes.*$ Replace with: $1

Updates the Title to "The Big Bang Theory"
Comments: ** Comment from web user: trevor0603 **

Yes, 1st box Match, 2nd box Replace value code would be as follows:

if (Regex.Match(matchPattern))
{
title = Regex.Replace(title, matchPattern, replacePattern);
}


Viewing all articles
Browse latest Browse all 10715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>