parent
487eef2907
commit
c83106ee38
5 changed files with 36 additions and 1 deletions
@ -0,0 +1,10 @@ |
||||
## 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' |
||||
``` |
Loading…
Reference in new issue