Skip to main content

Regex Evaluation

Description

Regex Evaluation matches the string value of an input field against a regular expression pattern and optionally captures matched substrings into new output fields. Use this step when you need to validate field formats, extract structured data from unstructured text, or parse complex strings — for example, extracting dates, phone numbers, or error codes from log messages. The step outputs a Boolean result field indicating whether the pattern matched, along with any captured groups as new fields available for downstream processing.

Configurations

Field NameDescription
Settings Tab:
Step nameSpecify the name of the step as it appears in the workflow workspace. This name has to be unique in a single workflow.
Field to evaluateSpecify the name of the field from the incoming stream which is to be matched against the regular expression
Result FieldnameSpecify the name of the result output field (boolean). This field will be added to the output stream and indicate whether the value of the input field matched the regular expression (Y/N).
Create fields for capture groupsEnable this if you want to create new fields based on capture groups in the regular expression. Capturing groups are those parts of the regular expression pattern which are enclosed in a pair of left and right parenthesis. If this option is enabled, substrings of the input field value corresponding to the capturing groups in the regular expression will be extracted and stored in new output fields. If this option is enabled, the "Capture group fields" grid needs to define one field for each capturing group.
Replace previous fieldsThis option is available in case the "Create fields for capture groups" option is enabled. When the "Replace previous fields" option is checked, fields created for capturing groups will replace existing fields in the incoming stream with the same name. If not enabled, new fields will be added to the output stream for each capturing group field.
Regular expressionPut here the regular expression to match. See the java.util.regex.Pattern javadoc for reference documentation of the particular regular expression syntax used by this step.
Use variable substitutionEnable this if your regular expression contains variable references. By enabling this, variable references will be expanded to their value before evaluating the regular expression pattern.
Capture group fieldsHere you can specify the new fields for any substrings captured by the regular expression from the input string. If the "Create fields for capture groups" option is enabled, you need to use this grid to enter a field definition corresponding to each captur ing group in the regular expression. The order of the fields is the same as the order of the capturing groups in the regular expression. The columns in the grid allow you to change to the required data type right away.
Content Tab
Ignore differences in Unicode encodingsEnable checkbox to ignore differences.

Note: This may improve performance, but be sure your data only contains US ASCII characters.

Enables case-insensitive matchingBy default, case-insensitive matching assumes that only characters in the US-ASCII charset are being matched. Unicode-aware case-insensitive matching can be enabled by specifying the 'Unicode-aware case...' flag in conjunction with this flag.
Permit whitespace and comments in patternWhen enabled, the step will ignore whitespace and embedded comments starting with # through the end of the line. In this mode, you must use the \s token to match whitespace. (If this option is not enabled, any whitespace characters appearing in the regular expression are matched as-is).
Enable dotall modeWhen enabled, the expression '.' matches any character including the line terminator. By default, this expression matches any character except line terminators.
Enable multiline modeWhen enabled, the expressions '^' and '$' match just after or just before, respectively, a line terminator or the end of the input sequence. By default, these expressions only match at the beginning and the end of the entire input sequence.
Enable Unicode-aware case foldingWhen enabled, in conjunction with the Case-insensitive flag, case-insensitive matching is done in a manner consistent with the Unicode standard. By default, case-insensitive matching assumes that only characters in the US-ASCII charset are being matched.
Enables Unix lines modeWhen enabled, only the line terminator is recognized in the behavior of '.', '^', and '$'.