88 Citrix NetScaler Policy Configuration and Reference Guide

Operations on Case Sensitivity of Text

Case Operation

Description

 

 

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:”.

 

 

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.

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,

Returns a string after truncating the text after

count)

character by the number of characters specified in

 

count.

text.PREFIX(character,

Selects the longest prefix in the target that has at

count)

most count occurrences of character.

Page 102
Image 102
Citrix Systems 9.2 manual Complex Operations on Text, Operations on the Length of a String, Case Operation Description