strReplace

Replaces all occurrences of a substring with another string. Takes str (original string), find (substring to find), replaceWith (replacement string). Returns a new string with all occurrences of find replaced with replaceWith.

String

Parameters & Returns

Parameters

str String
find String
replaceWith String

Returns

String

Quick Summary

Replaces all occurrences of a substring with another string. Takes str (original string), find (substring to find), replaceWith (replacement string). Returns a new string with all occurrences of find replaced with replaceWith.

Technical Exegesis...

Returns a new string with all occurrences of find replaced with replaceWith. The search is case-sensitive and replaces every match found in the original string.

If find is empty, returns the original string unchanged. The replacement continues from left to right, and the position advances by the length of replaceWith after each replacement.

Example

Example.bam
; No example implemented yet