Optionaltext: string | nullThe text to inspect
Optionalsearch: string | RegExp | nullThe string or regex to match
Optionalreplace: string | nullThe 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