90Citrix NetScaler Policy Configuration and Reference Guide

Basic Operations on a Portion of a String

Basic Text Operation

Description

 

 

text.

Returns a Boolean TRUE value if the length of the text

BETWEEN("starting

object is greater than or equal to the sum starting string,

string", "ending

ending string argument lengths, and if a prefix of the target

string")

matches starting string, and if the suffix of the target

matches ending string.

 

 

 

text.PREFIX(prefix

Returns the starting string from a target block of text that

length)

contains the number of characters in the length argument.

 

If the prefix length argument exceeds the number of

 

characters in the target, the entire string is selected.

text.SUFFIX(suffix

Returns the ending string from a target block of text that

length)

contains the number of characters in the length argument. If

 

the suffix length argument exceeds the number characters in

 

the target, the entire string is selected.

 

 

text.

Select the first block of text in the target that matches the

SUBSTR("string")

string.

text.SKIP(prefix

Selects the text in the target after skipping over a prefix

length)

length number of characters.

 

If the entire target has fewer characters than prefix length, the

 

entire target is skipped.

 

 

text.STRIP_END_WS

Selects the text after removing white space from the end of

 

the target.

text.STRIP_START_WS

Selects the text after removing white space from the

 

beginning of the target.

text.

Selects the character, removes white space that immediately

UNQUOTE(character)

precedes and follows the character, and if the remaining text

 

is quoted by character, this prefix also removes the quotes.

 

For example, the operation UNQUOTE('"') changes the

 

following text:

 

"abc xyz def "

 

To the following:

 

abc xyz def

Operations for Comparing the Alphanumeric

Order of Two Strings

The COMPARE operation examines the first non-matching character of two different strings. This operation is based on lexicographic order, which is the method used when ordering terms in dictionaries.

This operation returns the arithmetic difference between the ASCII values of the first non-matching characters in the compared strings. The following differences are examples:

Page 104
Image 104
Citrix Systems 9.2 Returns a Boolean True value if the length of the text, Matches ending string, Entire target is skipped