Forum Discussion
Robert_47833
Altostratus
Nov 22, 2011how to understand this syntax "?" in matches_regex
if {$queryString matches_regex "(?i)gsec=content"} {
other code
}
I don't know the what "?" represent in this syntax
does it mean 0 or 1 single character?
Robert_47833
Altostratus
Nov 22, 2011thanks,Aaron
[URI::query "?param1=val1¶m2=val2" param1]
the output is "val1"
does it mean this value need to end with "$",the value must be between "=" and "$" ,right?
I also wanna to use switch to replace this matches_regex
switch -glob [string tolower [HTTP::query]] {
*gsec=content* {
pool xxxx
}
does it make sense?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
