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