Perform string replacement with occurrence validation.
performStringReplacement(
content: string,
oldString: string,
newString: string,
replaceAll: boolean
): string | [string, number]| Name | Type | Description |
|---|---|---|
content* | string | Original content |
oldString* | string | String to replace |
newString* | string | Replacement string |
replaceAll* | boolean | Whether to replace all occurrences |