Skip to content

@lang:str.replace

Replace all occurrences of a substring.

Returns: string

@lang:str.replace(s old replacement)
NameTypeDescription
sstringSource string
oldstringSubstring to match
replacementstringReplacement text