Forum Discussion
jsgibbs1
Nimbostratus
Jul 15, 2015Scan command irule with URI encoding
iRulers,
I need to set the SSL Cert and separate the Subject DN attributes to reference later. This works when not URI encoding, though that's what I need. Can SCAN handle this? I have tested th...
Kevin_Stewart
Employee
Jul 16, 2015That's a great job for findstr:
set var "this is a [test]"
set found [findstr $var "\[" 1 "\]"]
The findstr command takes 3 options:
-
the first is the string to find inside another string, and from where to start collecting from. "["
-
the second is a skip count. You don't want to include the "[" in the result, so you'll skip one character.
-
the third is an optional terminator value (number of characters) or character. Without this option it'll collect to the end of the string. "]"
I don't have a test environment in front of me right now to verify, but I'm pretty sure you need to escape the brackets. "["
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