Forum Discussion
Removing a character from a variable using TCL
set 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.
- ekaleidoSep 28, 2016
Cirrus
Or I suppose you could just
set variable [string trim [ACCESS::session data get "session.custom.variable"] "@"] - SysTopherSep 28, 2016
Nimbostratus
Ekalieido,
This looks like it would work great, but it turns out the APM option that Kai suggested works better with my existing variable assign so I marked his response as the acceptable answer for my case. Unfortunately I can't mark both of you as correct, but for anyone else reading this looking for a similar solution please keep in mind that both of these answers are great suggestions.
- ekaleidoSep 28, 2016
Cirrus
No 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
* 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
