Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function replaces all defined substrings with the given replacement. It works like findReplaceAll() but ignoring the case.


Code Block
languagebash
titleSyntax
linenumberstrue
findReplaceAllIgnoreCase(text, stringToBeReplaced, replacement) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
findReplaceAllIgnoreCase("HellO my love, hELlo my friend.", "hello", "Goodbye")


This example

returns 

returns:

Goodbye my love, Goodbye my friend.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text.
stringToBeReplaced

Status
subtletrue
titletext

The string that should be replaced.
replacement

Status
subtletrue
titletext

The replacement for all found substrings matching the stringToBeReplaced.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext


UI Text Box
typetip

If you want to use a regular expression to find the substrings that should be replaced, have a look the the replaceAll() function.

If you want to replace only the first occurence of a substring, have a look at findReplaceFirstIgnoreCase().



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

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



Page properties
hiddentrue


Short description

Replaces all occurrences of a given substring with a given replacement, ignoring the case.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.1.32

Label