trim - Strip whitespace (or other characters) from the end and the beggining of a string.
trim(string,charlist)
This function returns a string with whitespace stripped from the beginning and end of str. Without the second parameter, trim2() will strip these characters:
Note: In the followings examples, the _ between the { should be removed to make it work.
trim(" Hello "); // Hello trim(charlist: "0..9", "098aaa098") // aaa
{{ include("includes/strings.sn") }}
Written by Pusnei Sergey, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.