exprv4:reference:methods:string_trim_case_methods




String Trim and Case Methods

These methods remove whitespace or change letter case.


trim()

Removes whitespace from both ends of the string.

Item Description
Syntax `string.trim()`
Arguments none
Returns string

Example:

'  abc  '.trim();     // 'abc'

trimleft()

Removes whitespace from the start of the string.

Item Description
Syntax `string.trimleft()`
Arguments none
Returns string

Example:

'  abc  '.trimleft(); // 'abc  '

trimright()

Removes whitespace from the end of the string.

Item Description
Syntax `string.trimright()`
Arguments none
Returns string

Example:

'  abc  '.trimright(); // '  abc'

upper()

Converts letters to uppercase.

Item Description
Syntax `string.upper()`
Arguments none
Returns string

Example:

'abc'.upper();        // 'ABC'

lower()

Converts letters to lowercase.

Item Description
Syntax `string.lower()`
Arguments none
Returns string

Example:

'ABC'.lower();        // 'abc'

Previous: String Regex Methods

Next: Objects

exprv4/reference/methods/string_trim_case_methods.txt · Last modified: by 127.0.0.1

Page Tools