This function replaces the first occurrence of a given text with a given replacement, ignoring the case of the text.
Bash
findReplaceFirstIgnoreCase(text, textToBeReplaced, replacement) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: "Goodbye your love, hello MY friend." |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any given text. |
|
|
text |
The string that should be replaced. |
|
|
text |
The replacement for the first found substring matching the |
Output
This function returns a text
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().
(books) Use cases and examples
| Use case |
|---|
| No content found. |