| data | The string to perform the replacement on. | 
| regex | The regex used to find matches that will be replaced with a new value. | 
| newValue | The new value to replace the regex match. Pass '' to remove regex match. | 
| replaceAll | Whether to replace matches. Pass true to replace all matches, false to replace only the first occurrence. | 
| caseInsensitive | Whether to perform a case-insensitive search and replace. Pass true to perform case-insensitive search and replace, false for case-sensitive. | 
| multiLine | Pass true to indicate 'data'  is a multi-line string, false otherwise. |