Berserk Docs
Scalar FunctionsString Functions

replace_strings

Replaces multiple string pairs in the source.

Syntax

replace_strings(source, lookups, rewrites)

Parameters

Prop

Type

Returns: string

Examples

Example 1

print replace_strings("axe and shield", dynamic(["axe", "shield"]), dynamic(["sword", "helm"]))
print_0 (string)
sword and helm

On this page