Berserk Docs
Scalar FunctionsString Functions

replace_regex

Replaces all regex matches with another string.

Syntax

replace_regex(source, regex, rewrite)

See Regex Syntax for the full regular expression reference.

Parameters

Prop

Type

Returns: string

Examples

Example 1

print replace_regex("Raid793on845Lindisfarne", "[0-9]+", "-")
print_0 (string)
Raid-on-Lindisfarne

On this page