Citrix Systems 9.2 사용자 설명서
Chapter 4 Advanced Expressions: Evaluating Text
87
Operations for Calculating the Length of a String
The following operation returns a numeric value that shows the number of
characters (not bytes) of a string:
characters (not bytes) of a string:
text.LENGTH
For example, you may want to identify request URLs that exceed a particular
length. Following is the expression that implements this example:
length. Following is the expression that implements this example:
HTTP.REQ.URL.LENGTH < 500
After taking a count of the characters or elements in a string, you can apply
numeric operations to them. For more information, see
numeric operations to them. For more information, see
Operations for Controlling Case Sensitivity
The following operation turns case sensitivity on or off for an expression.
text.EQ("string")
Returns a Boolean TRUE value if the target is an exact
match with string.
match with string.
For example, the following expression returns a
Boolean TRUE for a URL with a host name of
“myhostabc”:
Boolean TRUE for a URL with a host name of
“myhostabc”:
http.req.url.hostname.eq("myhostabc")
text.
STARTSWITH("string")
Returns a Boolean TRUE value if the target begins
with string.
with string.
For example, the following expression returns a
Boolean TRUE for a URL with a host name of
“myhostabc”:
Boolean TRUE for a URL with a host name of
“myhostabc”:
http.req.url.hostname.
startswith("myhost")
text.ENDSWITH("string")
Returns a Boolean TRUE value if the target ends with
string.
string.
For example, the following expression returns a
Boolean TRUE for a URL with a host name of
“myhostabc”:
Boolean TRUE for a URL with a host name of
“myhostabc”:
http.req.url.hostname.endswith("abc")
Operations on Case Sensitivity of Text
Case Operation
Description
text.SET_TEXT_
MODE(IGNORECASE|
NOIGNORECASE)
This operation turns case sensitivity on or off
for all text operations.
for all text operations.
Basic Operations on Text
Basic Text Operation
Description