std.replace()

Replaces the first occurrence of the literal string pattern in string s with replacement. If pattern is the empty string, the original string s is returned.

Format

STRING
std.replace(STRING s, STRING pattern STRING replacement)

Examples

1
std.replace("abcabc", "b", "") # returns "acabc"