Skip to main content
Removes the longest string containing only characters in <trim_characters> from both sides of the source string <expression>. If no <trim_characters> parameter is specified, the longest string containing only whitespace characters (ASCII Decimal 32) is removed from both sides of the specified source string <expression>.

Syntax

Parameters

Return Type

TEXT

Examples

The following example trims the character x from both sides of a string:

Rows: 1Execution time: 5.48ms

The following example trims the characters x and y from both sides of a string. Note that the ordering of characters in <trim_characters> is irrelevant:

Rows: 1Execution time: 4.59ms

The following example omits the <trim_characters> parameter, and thus trims whitespace from both sides of a string:

Rows: 1Execution time: 5.64ms