Trims the given left and right parts off a string.
Uses case-sensitive comparison.

Syntax

Smartsite SXML CopyCode image Copy Code
string string.trimleftright(string s, string left, string right)
string string.trimleftright(string s, string left, string right, boolean caseSensitive)

Parameters

Name Data Type Description
s String The input string.
left String String to remove at the left side.
right String String to remove at the right side.
caseSensitive Boolean If set to true, the trimming is case sensitive.

Return Value

Data Type Description
String Trimmed version of the string.

Expand image Example

SXML