matches_glob

Description

This command allows the use of glob style matching, as found in string match , switch -glob , etc.

Syntax

matches_glob

matches_glob

  • Implement glob style matching within a comparison

Examples

when HTTP_REQUEST {
   if { [HTTP::uri] matches_glob "/foo/*"} {
      pool foo_pool
   } else {
      pool second_pool
   }
}