Back to Core Functions
strrep
Replace substring
Syntax
s = strrep(str, old, new)
Description
Replaces all occurrences of old with new in str.
Parameters
| Name | Description |
|---|---|
| str | Input string |
| old | Substring to replace |
| new | Replacement string |
Returns
String with replacements made