May 07, 2015
BIG-IP : irule class match with wildcards
F5 BIG-IP Virtual Edition v11.4.1 (Build 635.0) LTM on ESXi
Can
[class match]
be used to match its arg against a list of strings containing wildcards ?
[class match [string tolower [HTTP::path]] contains whitelist]
whitelist
data-group
"/default.html"
"/desert-dwellers/camel.html"
"/amphibians/*"
"/kids-favorites-*"
"/smelly/goat-*-juvenile"
So all of the following paths would match positive against
whitelist
:
`"default.html"
"/desert-dwellers/camel.html"
"/amphibians/platypus.html"
"/kids-favorites-1.html"
"/kids-favorites-2.html"
"/smelly/goat-billy-juvenile"
"/smelly/goat-nanny-juvenile"
If
[class match]
data-group does not support wildcards is there another syntax possible - such as partial-matching ( left-to-right ) of any entry in the data-group ?