Forum Discussion
Marcel_Derksen_
Nimbostratus
May 02, 2006matchclass and data groups
Hi,
I know that with a matchclass the entry in a data group. But just to verify: If a data group consists of the entry: "green 200 extra" and with that more of this kind. And I make the stat...
May 02, 2006
matchclass will return the index of the matched data group item. How the match is performed depends on the operator you use with the matchclass command. If you use "contains" like this
set index [matchclass $::data_group contains "green"]it will return the first index that has the string "green" somewhere in it. If you use the "equals" operator,
set index [matchclass $::data_group equals "green"]then it will do a full string comparison on only return the index to the data group item that is exactly "green".
Make sense?
-Joe
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