blob: e88179de62dd0768c3914765db60a623887883ab [file] [log] [blame] [view]
## String `.replace()`
String objects now have a method called replace for replacing all instances of a
substring in a string with another.
```meson
s = 'aaabbb'
s = s.replace('aaa', 'bbb')
# 's' is now 'bbbbbb'
```