Colons and parenthesis in TAG affacting actions


#1

Hello,

I am having problems with the following tag that has a colon and parenthesis in the title please help:

Here is what I have:
Rediscovery (Part Ii): the New Mythology

I would like the tag to look like this:
Rediscovery (Part II): New Mythology, The

There are multiple issues with this tag:

  1. I would like to capitalized roman numerals within parenthesis and without

  2. I would like to move "The" to the end of the title as shown above

  3. Capitalizing "the" after a colon

I have the following actions enabled:

Action 1:
Action type: Case Conversion
Field: TAG
Case Conversion: Mixed Case
Words begin from/after and of: (.{[

Action 2:
Action Type: Replace with regular expression
Field: _TAG
Regular expression: ^(the|los|les|le|a)\s+(.*)
Replace matches with: $2, $1

This action type is designed to move "the" and "a" to the end of my tag
For example:

The Beatles -> Beatles, The

Action 3:
Action Type: Replace with regular expression
Field: _TAG
Regular expression: \s(a|the|of|to|an|and)(?=\s)
Replace matches with: $lower($0)

This action is designed to replace The with lower case the if in the tag. I need to put some clarifyier here to capitalize the is its at the beginning of the tag.