text module

text::trim

Remove leading and trailing whitespace from a string.

Syntax

RQL

Parameters

NameTypeDescription
valueUtf8The string to trim

Return Value

Returns a new string with leading and trailing whitespace removed.

Examples

Clean user input

$ Clean user input
$ ctrl+enter to run

Filter non-empty strings

$ Filter non-empty strings
$ ctrl+enter to run

Related Functions