Parsing Rule Reference Guide | Appendix B: Data Parser |
|
|
ReplaceCharacterCodes
The ReplaceCharacterCodes rule replaces all occurrences of various HTML character codes with their true characters.
Parameters: None
Example:
<ParsingRuleType="ReplaceCharacterCodes"
Source="SomeSource" Result="Capitalized" />
ReplaceTag
The ReplaceTag rule replaces the text that occurs between a pair of strings.
Parameters:
•StartTag (taggable): The starting delimiter of the text to replace.
•EndTag (taggable): The ending delimiter of the text to replace.
•NewText (taggable): The replacement text.
•Index (optional): Which occurrence of the delimited text to replace.
Example:
If the BigString container contains "A or B or C or D" then the following rule places "A or B or baseball or D" into the Chuckle container.
<ParsingRule Type="ReplaceTag" Source="BigString" Result="Chuckle"> <StartTag>or</StartTag>
<EndTag>or</EndTag> <NewText> baseball </NewText> <Index>2</Index> </ParsingRule>
Right
The Right rule extracts a specified number of characters from the end of the
Source container.
Parameters:
•Length: The number of characters to extract from the end of the Source container.
Polycom, Inc. | 197 |