Description:
This processor applies user-added regular expressions to the content of a FlowFile and routes a copy of the FlowFile to each destination whose regular expression matches. The user adds properties where the name is the relationship that the FlowFile should follow if it matches the regular expression, which is defined as the property's value. User-defined properties do support the NiFi Expression Language, but in such cases, the results are interpreted as literal values, not regular expressions.
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. If a property has a default value, it is indicated. If a property supports the use of the NiFi Expression Language (or simply, "expression language"), that is also indicated.
- Match Requirement
- Specifies whether the entire content of the FlowFile must match the regular expression exactly, or if any part of the content (up to a certain point) can contain the regular expression in order to be considered a match. Available options:
- content must match exactly
- content must contain match
- Default value: content must match exactly
- Supports expression language: false
- Character Set
- The character set in which the file is encoded.
- Default value: UTF-8
- Supports expression language: false
- Content Buffer Size
- Specifies the maximum amount of data to buffer in order to apply the regular expressions. If the size of the FlowFile exceeds this value, any amount of this value is ignored.
- Default value: 1 MB
- Supports expression language: false
- User-Defined Properties
- Users add properties with regular expressions (see the description above).
- User-defined properties do support the NiFi Expression Language, but in such cases, the results are interpreted as literal values, not regular expressions.
Relationships:
- unmatched
- FlowFiles that do not match any user-defined criteria follow this relationship.
- user-defined relationships
- User-added properties result in new relationships; if a FlowFile's content matches the criteria specified in the user-added properties, then it follows the associated relationship(s).