Forum Discussion
CTS_14402
Nimbostratus
Nov 19, 2004How to use findclass?
Hello,
I wrote the following rule.
However the rule do not output anything.
How to use the "findclass()" command?
log [getfield [findclass "abc" test-class]...
unRuleY_95363
Nov 24, 2004Historic F5 Account
I'd like to add that there is a shortcut to using getfield with findclass.
findclass takes an optional 3rd argument which is the separator. When the class item is matched the separator will split the class and the trailing portion will be returned.
In example, these are equivalent:
set foo [getfield [findclass "something" $::my_class] " " 2]
set foo [findclass "something" $::my_class " "]
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