public replace(notnull oldValue as String, newValue as Char) as String
Replaces every non-overlapping text occurrence with one scalar.
| Parameter | Description |
|---|---|
oldValue | Text to replace. |
newValue | Replacement scalar. |
A new String; the receiver is unchanged.
assert "hello".replace("ll", 'x') == "hexo"