starts_with¶
Description¶
Tests if one string starts_with another string
Syntax¶
<string1> starts_with <string2>
<string1> starts_with <string2>¶
- Tests if string1 starts with string2.
Equivalent to the TCL string match
command:
string match string2* string1
Examples¶
when HTTP_REQUEST {
if { [HTTP::path] ends_with "cgi" } {
pool cgi_pool
} elseif { [HTTP::path] starts_with "/abc" } {
pool abc_servers
}
}