Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Page properties
hiddentrue
Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short description

Removes leading and trailing blanks (white spaces and tabs) from a text.

Output Statussubtletruetitletext UI Text Box
sizemedium
typeinfo

This function returns a given text after removing leading and trailing blanks (white spaces and tabs).

Code Block
languagebash
titleSyntax
linenumberstrue
trim(text) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{trim(" Hello World!           ")}

This example returns:

Hello World!

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text.
UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext

Page properties
hiddentrue
Short description

Removes leading and trailing blanks (white spaces and tabs) from a text.

Output

Status
subtletrue
titletext