Forum Discussion
Jnon
Mar 30, 2018Nimbostratus
string variable
Need to create variable from string with multiple delimiters
Example: TXT=my Variable Value, with spaces and other characters, TXT2=More Data for Second variable, TXT3=Additional info,
co...
Stanislas_Piro2
Mar 30, 2018Cumulonimbus
Hi,
You can first use string map to replace separators by a dedicated character
set tmp [string map {", TEXT=" "|" ", TEXT2=" "|" ", TEXT3=" "|" } $var ]
Then use split with | as separator.
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