CBA_fnc_replace

Description

Replaces substrings within a string.  Case-dependent.

Parameters

_stringString to make replacement in [String]
_patternSubstring to replace [String]
_replacementString to replace the _pattern with [String]

Returns

String with replacements made [String]

Example

_str = ["Fish frog cheese fromage", "fro", "pi"] call CBA_fnc_replace;
// => "Fish pig cheese pimage"

Author

BaerMitUmlaut

Close