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

Returns a text like s, but where all substrings matching regexp have been replaced with the result of evaluating replacement_expression against each of these substringsReplaces 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 returns a text like s, but where all substrings matching regexp have been replaced with the result of evaluating replacement_expression against each of these substrings.Argument text_expression is an expression that returns a stringreplaces all sub-strings matching the given regular expression with the given replacement, where ^% represents each of the matching substringssub-string, and ^ represents the order of appearance beginning with index of the current sub-string under all matched sub-string starting at 1.


Code Block
languagebash
titleSyntax
linenumberstrue
findModify(string stext, string regexp, string replacement_expression) #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(string s, string regexp, string replacement_expression"The cure for boredom is curiosity", "[a-zA-Z]", modulus(^, 2) = 1 ? toUpperCase(^%) : ^%) 


This example returns the following text"ThE curE for bOredOm is cUriOsitycUrE fOr BoReDoM iS cUrIoSiTy."



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxx

Status
subtletrue
titledata type

Parameter description.
xxx

Status
subtletrue
titledata type

Parameter description.
xxx

Status
subtletrue
titledata type

Parameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titleText