Berserk Docs
Scalar FunctionsString Functions

trim_end

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

Syntax

trim_end(regex, source)

Parameters

Prop

Type

Returns: string

Examples

Example 1

print trim_end("\\.*", "Ragnar Lothbrok...")
print_0 (string)
Ragnar Lothbrok

On this page