This function replaces the first occurrence of a given text with a given replacementignoring the case of the text.


findReplaceFirstIgnoreCase(text, textToBeReplaced, replacement) #Output: Text



Parser expressionDescription


%{findReplaceFirstIgnoreCase("Goodbye MY love, hello MY friend.", "mY", "your")}


This example returns:

"Goodbye your love, hello MY friend."



Parameters used in this function

ParameterInput (data type)Description
text

Any given text.
textToBeReplaced

The string that should be replaced.
replacement

The replacement for the first found substring matching the textToBeReplaced.



This function returns a


If you want to use a regular expression instead, have a look at replaceFirst().

If you want to replace all occurences of a substring, have a look at findReplaceAllIgnoreCase().



Use cases and examples



Short description

Replaces the first occurrence of a given text with the given replacement, ignoring the case.

Output