Forum Discussion
Christopher_J_B
Nimbostratus
Sep 22, 2010Attempting to remove newline/spaces from a HTTP:payload without sucess
I have an irule that parses http payload that contain xml using the findstr function; the problem is some vendors xml requests have spaces and/or newline characters which getting difficult to account ...
hoolio
Cirrostratus
Sep 22, 2010I think the use of square braces is the same in TCL and iRules. With tclsh, this doesn't work:
% string map [" " "" "\n" ""] "test string with spaces"
invalid command name " "
% info patchlevel
8.4.1
Curly braces will work though:
% string map {" " "" "\n" ""} "test string with spaces"
teststringwithspaces
Or have I missed what you're saying?
Aaron
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