This function replaces all occurrences of a given substring with a given replacement.


findReplaceAll(text, stringToBeReplaced, replacement) #Output: Text



Parser expressionDescription


findReplaceAll("Goodbye my love, hello my friend.", "my", "your") 


This example returns

Goodbye your love, hello your friend.


findReplaceAll("Jira Workflow Toolbox is a great tool!", "Jira Workflow Toolbox", "JWT") 


This example returns

JWT is a great tool!


findReplaceAll("The weather is beautiful!", "e", "a") 


This example returns

Tha waathar is baautiful!



Parameters used in this function

ParameterInput (data type)Description
text

Any given text.
stringToBeReplaced

The string that should be replaced.
replacement

The replacement for all found substrings matching the stringToBeReplaced.



This function returns a


If you want to use a regular expression to find the substrings that should be replaced, have a look at replaceAll().

If you want of only replace the first occurence of a substring, have a look at findReplaceFirst().



Use cases and examples



Parser function cloudfindReplaceAll()
Map(tick)
Notes






Status
Tech review

Style guide




Short description

Replaces all occurrences of a given substring with the given replacement.

Output

Available since

Label