Forum Discussion
Robert_Dolega_3
Jan 20, 2017Historic F5 Account
irule trimleft
Hello,
Below code
set newuri2 [string trimleft "/status_cache/abcd" /status_cache]
log local0. "newuri: $newuri2"
gives output
$1
instead
$1
Any ideas why?
Thanks in advanced for an...
nathe
Cirrocumulus
Jan 20, 2017Robert - may i allow Jason to explain this better than i could. see iRules 101 - 14 - TCL String Commands Part 2
See if string range works better for you i.e.
set newuri2 [string range "/status_cache/abcd" 14 end]
Hope this helps,
N
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