Berserk Docs
Scalar FunctionsString Functions

trim

Removes leading and trailing match of the specified regex from the source string.

Syntax

trim(regex, source)

Parameters

Prop

Type

Returns: string

Examples

Example 1

print trim("--", "--Odin--")
print_0 (string)
Odin

On this page