This function returns true, if the given text matches a regular expression, otherwise it returns false.
Bash
matches(text, regularExpression) #Output: Boolean
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns a boolean value: true |
|
Bash
|
This example returns a boolean value: true |
|
Bash
|
This example returns a boolean value: false |
|
Bash
|
This example returns true if the current issue has at least one .txt file attached. This is a perfect example for a Logical validator. The field used in this expression is: Attachments with details |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any given text. |
|
|
text |
A valid regular expression that the given text will be checked against. |
Output
This function returns a boolean
📚 Use cases and examples
| Use case | Workflow function | Parser functions |
|---|---|---|
| Prevent external users from creating issues |
matches() toString() textOnStringList() toStringList() userDisplayName() |