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

Compare with Current View Page History

« Previous Version 11 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
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
Output

This function returns a TEXT