Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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



Page properties
hiddentrue


Short description

Replaces all sub-strings matching the given regular expression with the given replacement.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.2.12




UI Text Box
sizemedium
typeinfo

This function replaces all sub-strings matching the given regular expression with the given replacement, where ^% represents the matching sub-string, and ^ represents the index of the current sub-string under all matched sub-string starting at 1.


Code Block
languagebash
titleSyntax
linenumberstrue
findModify(text, regexp, replacement) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
findModify("JWT is the best tool!", "JWT", "Jira Workflow Toolbox") 


This example returns the following text: "Jira Workflow Toolbox is the best tool!"


Code Block
languagebash
linenumberstrue
findModify("The cure for boredom is curiosity", "[a-zA-Z]", modulus(^, 2) = 1 ? toUpperCase(^%) : ^%) 


This example returns the following text: "ThE cUrE fOr BoReDoM iS cUrIoSiTy."



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxtext

Status
subtletrue
titledata typetext

Any given textParameter description.
xxxregexp

Status
subtletrue
titledata typetext

A valid regeular expression that grabs all substrings to be replaced.
replacmentParameter description.xxx

Status
subtletrue
titledata type

Parameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titleText