Character Replace Processor

Prev Next

The Character Replace Processor allows us to replace a series of characters or words in a cue attribute with other words or characters. This can be used to trim prefixes for example. This processor uses the .NET regular expression language for pattern and value replacement (https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference).

Param name

Mandatory

Description

Possible Value

key

Yes

Name of the attribute you will  modify.

Not null.

pattern

Yes

Character pattern we would like to replace (note: uses .NET regex patterns).

Not null.

value

Yes

Replacement value.

 

Example XML:

<CharacterReplaceProcessor>
   <CharacterReplaceItems>
     <CharacterReplaceItem key="cue_title" pattern="PREFIX1:" value="" />
   </CharacterReplaceItems>
</CharacterReplaceProcessor>