Citrix Systems Network Router 9.2 Manual De Usuario
86
Citrix NetScaler Policy Configuration and Reference Guide
Operations on Text
The following sections describe text operations that examine text.
Be aware of the following conditions for any text-based operation:
•
For any operation that takes a string argument, the string cannot exceed 255
characters.
characters.
•
You can include white space when you specify a string in an expression.
Basic Operations on Text
The following table lists basic operations on text.
VPN.HOST.EQ("hostname")
Returns a Boolean TRUE value if the host name
matches the hostname. The comparison is case
insensitive.
matches the hostname. The comparison is case
insensitive.
For example, if the host name is www.
mycompany.com or www.mycompany.com:8080,
the following returns TRUE:
mycompany.com or www.mycompany.com:8080,
the following returns TRUE:
vpn.host.eq(
"
www.mycompany.com
"
)
If the text mode is URLENCODED the host name
is decoded before comparison. For more
information, see
is decoded before comparison. For more
information, see
VPN.HOST.SERVER
Extracts the server name part of the host name. For
example, if the host name is www.mycompany.
com or www.mycompany.com:8080, the server is
www.mycompany.com.
example, if the host name is www.mycompany.
com or www.mycompany.com:8080, the server is
www.mycompany.com.
All text operations after this prefix are case
insensitive.
insensitive.
VPN and Clientless VPN Expression Prefixes that Return Text
VPN and Clientless VPN
Expression
Expression
Description
Basic Operations on Text
Basic Text Operation
Description
text.CONTAINS("string")
Returns a Boolean TRUE value if the target contains
string.
string.
Following is an example:
http.req.url.contains(".jpeg")