The REGEXP function outputs the portion of the input string that matches the specified regular expression.
This component supports generic regular expressions and Perl5 regular expressions.
Input | Data Type | Description |
---|---|---|
Input1 | String | The string to perform the regular expression against. |
Input2 | String | Sets the RegExp property. (optional) |
Input3 | Integer | Sets the Offset property. (optional) |
Input4 | Integer | Sets the Count property. (optional) |
Output | Data Type | Description |
---|---|---|
Output1 | String | The regular expression results. |
Name | Property Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
RegExp | String | The regular expression. | ||||||
Offset | Integer |
Specifies which group in the pattern match is to be returned. A group is defined in the regular expression with open ("(") and close (")") brackets. "(0)" will return all results. |
||||||
Count | Integer | In the case that the RegExp pattern matches the search string multiple times, this value determines which match iteration is used for determining the return value. If set to '0' (the default) the first match is used.
|
||||||
CaseInsensitive | choice |
Defines whether the query distinguishes from upper and lower case characters.
|
Offset
property.
Property | Output | |||
Input1 | abc,filename20021231.txt | RegExp | [a-zA-Z]*([0-9]*).txt | 20021231 |
Count | 0 | |||
Offset | 1 | |||
CaseInsensitive | false |
Count
property specifies which match is output.
Property | Output | |||
Input1 | abc,filename20021231.txt,filename20030101.txt | RegExp | [a-zA-Z]*([0-9]*).txt | 20030101 |
Count | 1 | |||
Offset | 1 | |||
CaseInsensitive | false |