You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

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.

Syntax
findModify(text, regexp, replacement) #Output: Text
Examples
Parser expressionDescription
findModify("JWT is the best tool!", "JWT", "Jira Workflow Toolbox") 
This example returns the following text: "Jira Workflow Toolbox is the best tool!"
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."

Additional information

Parameters used in this function

ParameterInput (data type)Description
text

TEXT

Any given text.
regexp

TEXT

A valid regeular expression that grabs all substrings to be replaced.
replacment

DATA TYPE

Parameter description.
Output

This function returns a TEXT