Forum Discussion
Scan command irule with URI encoding
That's how the findstr command works. The first parameter is the character or string to start collecting from. The second parameter is the number of characters to skip once you've found the character or string in the first parameter. And the third option is where or when to end collecting. So for example, the string
this is a [test]
would return "test" from the above findstr example. It starts collecting at the first occurrence of a "[", skips that 1 character, and stops collecting at the first occurrence of "]" after that. Here's another example using a distinguishedName value:
set mycn "CN=bob.user,ou=myou,o=myorg,dc=mydomain,dc=com"
log local0. [findstr $mycn "CN=" 3 ","]
It starts collecting at "CN=", skips these 3 characters, and stops collecting at the next comma, resulting in:
bob.user
Make sense?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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