Forum Discussion
Richard_Jones
Jun 22, 2011Nimbostratus
Different results from TCL regexp and iRules regexp
I am working on an iRule that will validate the value of a parameter only contains a-z, 0-9, and / + =. I have created a regexp pattern that works in TCL, but not in an iRule:
TCL:
...
Richard_Jones
Jun 22, 2011Nimbostratus
hoolio, I made your change. Thanks. My regex-fu is weak these days....
Jason, thanks for the quick demo, which I duplicated with my iRule and verified with plain text.
The parameter value I'm inspecting is actually base64 encoded. I extract the value, base64 decode it, then run it through the regex. My log statement shows that I am correctly decoding the value. Just now, I added additional text to the end of a log statement and see that my base64 decoded string is actually "asdf ". I hadn't noticed that space last night....
Now I just need to strip that space, and I should be good to go.
Thanks for the help!
R
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