Forum Discussion
SysTopher
Nimbostratus
Sep 28, 2016Removing a character from a variable using TCL
Hello,
iRule newbie here. I'm curious if anyone can give me an idea of how I could take a variable and strip out specific characters. For example, I have an iRule where I'm pulling a variable...
ekaleido
Cirrus
Sep 28, 2016set variable [ACCESS::session data get "session.custom.variable"]
set newVariable [string trim $variable "@"]
Keep in mind this will remove all @ from $variable, regardless of location in the string.
ekaleido
Cirrus
Sep 28, 2016No worries! Just glad you were able to get it done.
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
