Skip to content

str::replace

replace(source: String, pattern, replacement: String)

ParameterTypeDescription
sourceString
pattern*
replacementString

Returns

(String) A new string with all occurrences of the pattern string replaced with the replacement string.