User Tools

Site Tools


syntax:functions:trim

Trim(text)

Category: Text function


Description

This function trims off all leading and trailing spaces, and other non-printing characters (see Remarks) from text.


Arguments

ArgumentTypeDescription
textTextAny text value or other value that can be implicitly converted to text if required.

Return value type: Text


Remarks

Besides spaces, it also removes other non-printing, white-space characters such as tabulations, form feeds, etc. The full list of removed white-space characters.


Examples

trim(' Columbia') //Returns 'Columbia'
trim(' Columbia  ') //Returns 'Columbia'
trim('  Columbia  ') //Returns 'Columbia'


See also

syntax/functions/trim.txt · Last modified: 2021/08/11 15:18 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki