For each element in `self`, return a copy of the string with all occurrences of substring `old` replaced by `new`. See also -------- char.replace
(self, old, new, count=None)
| 2413 | return asarray(partition(self, sep)) |
| 2414 | |
| 2415 | def replace(self, old, new, count=None): |
| 2416 | """ |
| 2417 | For each element in `self`, return a copy of the string with all |
| 2418 | occurrences of substring `old` replaced by `new`. |
| 2419 | |
| 2420 | See also |
| 2421 | -------- |
| 2422 | char.replace |
| 2423 | |
| 2424 | """ |
| 2425 | return asarray(replace(self, old, new, count)) |
| 2426 | |
| 2427 | def rfind(self, sub, start=0, end=None): |
| 2428 | """ |