trimStart

Modified on Wed, 02 Aug 2023

Description

Remove leading whitespace or specified characters from string

Syntax

trimStart(text, characters)

Parameters

Input ParameterTypeDescription
textstringThe string to trim.
characters (optional)stringThe characters to trim.

Return value

Type
string

Sample

ExampleResultDescription
trimStart(' abc ')'abc 'Reomve spaces from the beginning of a string
trimStart('123abc321', '123')'abc123'Reomve all the mached characters from the beginning of a string
trimStart('123abc321', '12')'3abc321'Reomve all the mached characters from the beginning of a string

To view all the String functions, click here.

See Also