158 Citrix NetScaler Policy Configuration and Reference Guide

Note: The patterns in a pattern set can be regular expressions in PCRE format.

Operators That Use a Pattern Set

The following table describes operations that match text and HTTP header values with a collection of static strings in a pattern set.

Operators That Compare Text and HTTP Headers With a Pattern Set

Matching Operators

Description

 

 

text.CONTAINS_ANY (pattern_

Evaluates whether the target contains any of the

set_name)

strings that are bound to pattern_set_name.

 

Returns a Boolean TRUE value if the target

 

contains any of the strings that are bound to

 

pattern_set_name.

 

 

text.SUBSTR_ANY(pattern_

Selects the first sub-string that matches any string

set_name)

in the given pattern set. The pattern set cannot have

 

strings longer than 255 characters.

 

Parameters:

 

pattern_set_name - The name of the pattern

 

set.

http header.CONTAINS_ANY

Works with the following prefixes:

(pattern_set_name)

HTTP.REQ.COOKIE

 

HTTP.REQ.HEADER("header_name")

 

HTTP.RES.HEADER("header_name")

 

HTTP.RES.SET_COOKIE

 

HTTP.RES.SET_COOKIE2

 

Evaluates whether the target contains any of the

 

strings that are bound to pattern_set_name.

 

Returns a Boolean TRUE if the target contains any

 

string that is bound to pattern_set_name.

 

 

text.EQUALS_ANY (pattern_

Evaluates whether the target matches any of the

set_name)

strings that are bound to pattern_set_name.

 

Returns a Boolean TRUE value if the target is an

 

exact match with any of the strings that are bound

 

to pattern_set_name.

 

 

 

Page 172
Image 172
Citrix Systems 9.2 Operators That Use a Pattern Set, Matching Operators Description, Patternsetname, To patternsetname