Optionaltext: null | stringThe text to inspect
Optionalsearch: null | string | RegExpThe string or regex to match
Optionalreplace: null | stringThe expected replacement string
the string that replaced the first occurrence in the given text, case-insensitive
Returns the string that replaced the first occurrence in the given text, case-insensitive