std.replace

STRINGstd.replaceSTRINGsSTRINGtargetSTRINGreplacement

Available inall subroutines.

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

Example

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