REGEXP

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/Output

Number of Connections: Min: 1/Max:4
InputData TypeDescription
Input1StringThe string to perform the regular expression against.
Input2StringSets the RegExp property. (optional)
Input3IntegerSets the Offset property. (optional)
Input4IntegerSets the Count property. (optional)

OutputData TypeDescription
Output1StringThe regular expression results.

Property

NameProperty TypeDescription
RegExpstringThe regular expression.
OffsetintSpecifies 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.
CountintIn 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.
CaseInsensitivechoice Defines whether the query distinguishes from upper and lower case characters.
true - does not distinguish between upper and lower case
false - does distinguish between upper and lower case

Topic

Regular Expression Dialog

When double-click the regular expression functions, the Regular Expression Dialog is displayed. You can configure the properties and test the regular expressions.

 

 

Fields
RegexpInput regular expression property.
When the item is selected by listing the lower right of the screen, the corresponding regular expression is set.
Input stringInput the string to be used by test.
ResultThe result of test is displayed.
Other propertyProperties of editing function is displayed except for regular expression.
Selection listIf selects the category, regular expressions are displayed below.
The corresponding regular expression is reflected in the input column when the item is selected from the list, and the explanation is displayed under the screen.
Test buttonTest the current configurations with Input string.
Edit sample buttonEdits the regular expression list of Selection List.

 

Regular expression list is simple CSV file and it is freely customizable.

 

Specification of regular expression sample data

Example

Example 1 : Define the string format to match using the brackets "()" and Offset property.
PropertyOutput
Input1abc,filename20021231.txtRegExp[a-zA-Z]*([0-9]*).txt20021231
Count0
Offset1
CaseInsensitivefalse

Example 2 : In the case of multiple matches, the Count property specifies which match is output.
PropertyOutput
Input1abc,filename20021231.txt,filename20030101.txtRegExp[a-zA-Z]*([0-9]*).txt20030101
Count1
Offset1
CaseInsensitivefalse