Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourYellowGreen
titleReady for reviewdone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

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

Output

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
findReplaceFirstIgnoreCase(text, textToBeReplaced, replacement) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


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


This example returns "Goodbye your love, hello MY friend."



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text.
textToBeReplaced

Status
subtletrue
titletext

The string that should be replaced.
replacement

Status
subtletrue
titletext

The replacement for the first found substring matching the textToBeReplaced.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext


UI Text Box
typetip

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().