This function replaces all substrings matching the given regular expression with a given replacement.
replaceAll(text, regex, replacement) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: HelloWorld All whitespace characters have been removed.
|
|
Bash
|
This example returns: Hello World |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any given text. |
|
|
text |
A valid regular expression that grabs all substrings to be replaced. |
|
|
text |
This text will replace all substrings found by the given regex. |
To insert a new line, simply press the Enter key.
Output
This function returns a text
This expression could be used to e.g. modify an issue's summary or description.
If you want to replace only the first matching occurrence, have a look at the replaceFirst() function.
|
Parser expression |
Value |
|---|---|
|
Bash
|
He_lo World |
|
Bash
|
He__o Wor_d |
If you don't want to use a regular expression, have a look at the findReplaceAll() function.
(books) Use cases and examples
| Use case |
|---|
| No content found. |