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