This function returns a text list with all substrings matching a given regular expression.
findPattern(text, regex) #Output: Text list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: 1900,2000,1.5,6.1 |
|
Bash
|
Extract all email addresses from a text field Assuming
this example returns: admin@example.com,administrator@example.com,jwt@example.com |
|
Bash
|
Extract all user mentions from the last comment Assuming
this example returns: 5c90f542efd65d2d3d465d7c |
|
Bash
|
Extract all issue keys from the last comment Assuming
this example returns: DEMO-1,DEMO-2 |
|
Bash
|
Extract all URLs from a text field Assuming
this example returns: apps.decadis.net,apps.decadis.net/display/JWT,www.google.com |
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 returned. |
Output
This function returns a text list
If you want to ignore the case, have a look at the findPatternIgnoreCase() function.
|
Parser expression |
Output |
|---|---|
|
Bash
|
["Green", "Blue"] |
|
Bash
|
[ ] |
(books) Use cases and examples
| Use case |
|---|
| No content found. |