String.replace_all

String.replace_all

String.replace_all

Function

Replaces all matches in a string.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
fromString or RegexYesNoneWhat to replace.
toStringNoEmpty stringThe content after replacement.

Return value

TypeDescription
StringThe new string after replacement.

Code Example

Notes

  • Unlike replace, replace_all replaces all matches.