logo
Home XtGem- Templates- XtScript- bottom
Remove whitespace (or other characters) from the beginning and end of a string
[...] = optional ... = your value
[var $... = ]call trim $val=…[;$charlist=…]
Show as text
Show as text
Reload
default trim
input =| xyz FOOBAR zyx |
output =|xyz FOOBAR zyx|

a space in the charlist
input = | xyz FOOBAR zyx |
output = |FOOBAR|

trim a range of characters
input = ABCDEFGHIJKLMABCDEF
output = GHI
Powered by XtGem
About us Contact Forum top