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 statement that will use matchclass with a search value "green" what will be returned by the matchclass statement? Will it return the entry with green included or will it return a not found value?
Marcel.
1 Reply
Sort By
- 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"]
set index [matchclass $::data_group equals "green"]
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