88 Citrix NetScaler Policy Configuration and Reference Guide
Complex Operations on Text
In addition to performing simple string matching, you can configure expressions
that examine more complex aspects of text, including examining the length of a
string and looking within a text block for patterns rather than specific strings.
Be aware of the following for any text-based operation:
For any operation that takes a string argument, the string cannot exceed 255
characters.
You can include white space when you specify a string in an expression.

Operations on the Length of a String

The following operations extract strings based on a character count.
text.TO_LOWER Converts the target to lowercase.
For example, the string “ABCd:” is converted
to “abcd:”.
text.TO_UPPER Converts the target to uppercase.
For example, the string “abcD:” is converted to
“ABCD:”.
Operations on Case Sensitivity of Text
Case Operation Description
Operations on Strings Based on a Character Count
Character Count Operation Description
text.TRUNCATE(count)Returns a string after truncating the end of the
target by the number of characters in count.
If the entire string is shorter than count, nothing is
returned.
text.TRUNCATE(character,
count)Returns a string after truncating the text after
character by the number of characters specified in
count.
text.PREFIX(character,
count)Selects the longest prefix in the target that has at
most count occurrences of character.