Berserk Docs
Scalar FunctionsString Functions

translate

Replaces characters in a string based on character mapping.

Syntax

translate(search_list, replace_list, source)

Parameters

Prop

Type

Returns: string

Examples

Example 1

print translate("aei", "AEI", "raid on the monastery")
print_0 (string)
rAId on thE monAstEry

On this page