Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titletodoReady for review

Style guide

Status
colourYellow
titletodoReady for review

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



Page properties
hiddentrue


Short description

Returns a text list with the content of argument s where Replaces the first occurrence of a given substring find has been replaced with string with the given replacement.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.1.32




UI Text Box
sizemedium
typeinfo

This function returns a text list with the content of argument s where the replaces the first occurrence of a given substring find has been replaced with string with the given replacement.


Code Block
languagebash
titleSyntax
linenumberstrue
findReplaceFirst(string stext, string findstringToBeReplaced, string replacement) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
findReplaceFirst("Goodbye my love, hello my friend.", "my", "your")


This function returns the following text listexample returns "Goodbye your love, hello my friend."



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxtext

Status
subtletrue
titledata typetext

Any given textParameter description.
xxxstringToBeReplaced

Status
subtletrue
titledata type

Parameter description.

text

The string that should be replaced in text.
replacementxxx

Status
subtletrue
titledata typetext

The replacement for all found substrings matching the stringToBeReplacedParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list


UI Text Box
typetip

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