kco
Apr 01, 2009Altostratus
question about matchclass and "contains"
I would like to use matchclaass function with the "contains" operator. We want to shunt requests from Googlebot User-Agent to a separate pool of servers. I've searched DevCentral and found many examples to use as a model.
My question is about whether to use:
matchclass
or
matchclass
The page http://devcentral.f5.com/wiki/default.aspx/iRules/matchclass.html has a caution and says to use the former syntax for the type of comparison that we would like to do.
Quote:
This example will will return the index of the first row that has the string "green" anywhere in it:
[matchclass $::data_group contains "green"]
EndQuote:
Yet every iRule example that I found on the site has the $::data_group on the right hand side of the contains operator. And even the contains example on that page above has it on the rhs.
Searches on Google did not yield a reference that resolves the dilemma. Can anyone in the Forum answer this for me?
Thanks.
...Kevin O'Neil
OCLC Inc.
Dublin OH USA