90 Citrix NetScaler Policy Configuration and Reference Guide
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:

text.
BETWEEN("starting
string", "ending
string")
Returns a Boolean TRUE value if the length of the text
object is greater than or equal to the sum starting string,
ending string argument lengths, and if a prefix of the target
matches starting string, and if the suffix of the target
matches ending string.
text.PREFIX(prefix
length)Returns the starting string from a target block of text that
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
length)Returns the ending string from a target block of text that
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.
SUBSTR("string") Select the first block of text in the target that matches the
string.
text.SKIP(prefix
length)Selects the text in the target after skipping over a prefix
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.
UNQUOTE(character)Selects the character, removes white space that immediately
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

Basic Operations on a Portion of a String

Basic Text Operation Description