Forum Discussion
MDPF52_180608
Feb 26, 2015Nimbostratus
String trim
Hello Devcentral,
How i can parse a string in order to obtain only the ten last characters and save them to a variable ?
Thanks in advance,
Best Regards,
M.
Brad_Parker_139
Feb 26, 2015Nacreous
something like this may work for you.
set lastTen [string range [expr [string length ] - 10] end]
- Brad_Parker_139Feb 26, 2015NacreousI believe range uses index 0, so I updated it to length minus 10.
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