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)
| 2509 | return asarray(partition(self, sep)) |
| 2510 | |
| 2511 | def replace(self, old, new, count=None): |
| 2512 | """ |
| 2513 | For each element in `self`, return a copy of the string with all |
| 2514 | occurrences of substring `old` replaced by `new`. |
| 2515 | |
| 2516 | See Also |
| 2517 | -------- |
| 2518 | char.replace |
| 2519 | |
| 2520 | """ |
| 2521 | return asarray(replace(self, old, new, count)) |
| 2522 | |
| 2523 | def rfind(self, sub, start=0, end=None): |
| 2524 | """ |