public native replace(oldValue as String, newValue as String) as String
Returns a copy where all occurrences of oldValue are replaced by newValue.
| Parameter | Description |
|---|---|
oldValue | Value to replace. |
newValue | Replacement value. |
A new string with the replacements applied.
assert "a-b-a".replace("a", "x") == "x-b-x"