Functions

trim

Supported By

Syntax

the trim of factor

trim ( expression )

Factor and expression yield strings.

Example

put trim("  Hello, world!  ") -- yields "Hello, world!"

Description

The trim function trims all spaces, tabs, line breaks, control characters, line separators, and paragraph separators from the beginning and end of the given string and returns the trimmed string.

See Also

ltrim, rtrim