ExtractText 2025.10.2.19¶
번들¶
org.apache.nifi | nifi-standard-nar
설명¶
Evaluates one or more Regular Expressions against the content of a FlowFile. The results of those Regular Expressions are assigned to FlowFile Attributes. Regular Expressions are entered by adding user-defined properties; the name of the property maps to the Attribute Name into which the result will be placed. The attributes are generated differently based on the enabling of named capture groups. If named capture groups are not enabled: The first capture group, if any found, will be placed into that attribute name. But all capture groups, including the matching string sequence itself will also be provided at that attribute name with an index value provided, with the exception of a capturing group that is optional and does not match - for example, given the attribute name “regex” and expression “abc(def)?(g)” we would add an attribute “regex.1” with a value of “def” if the “def” matched. If the “def” did not match, no attribute named “regex.1” would be added but an attribute named “regex.2” with a value of “g” will be added regardless. If named capture groups are enabled: Each named capture group, if found will be placed into the attributes name with the name provided. If enabled the matching string sequence itself will be placed into the attribute name. If multiple matches are enabled, and index will be applied after the first set of matches. The exception is a capturing group that is optional and does not match For example, given the attribute name “regex” and expression “abc(?<NAMED>def)?(?<NAMED-TWO>g)” we would add an attribute “regex. NAMED” with the value of “def” if the “def” matched. We would add an attribute “regex. NAMED-TWO” with the value of “g” if the “g” matched regardless. The value of the property must be a valid Regular Expressions with one or more capturing groups. If named capture groups are enabled, all capture groups must be named. If they are not, then the processor configuration will fail validation. If the Regular Expression matches more than once, only the first match will be used unless the property enabling repeating capture group is set to true. If any provided Regular Expression matches, the FlowFile(s) will be routed to ‘matched’. If no provided Regular Expression matches, the FlowFile will be routed to ‘unmatched’ and no attributes will be applied to the FlowFile.
입력 요구 사항¶
REQUIRED
민감한 동적 속성 지원¶
false
속성¶
속성 |
설명 |
|---|---|
문자 세트 |
파일이 인코딩되는 문자 세트입니다 |
Enable Canonical Equivalence |
두 문자의 전체 정식 분해가 일치하는 경우에만 두 문자가 일치함을 나타냅니다. |
대/소문자 구분 없는 일치 사용 |
Indicates that two characters match even if they are in a different case. Can also be specified via the embedded flag (?i). |
Enable DOTALL Mode |
Indicates that the expression ‘.’ should match any character, including a line terminator. Can also be specified via the embedded flag (?s). |
Enable Literal Parsing of the Pattern |
메타문자와 이스케이프 문자에 특별한 의미를 부여하지 않아야 함을 나타냅니다. |
Enable Multiline Mode |
Indicates that ‘^’ and ‘$’ should match just after and just before a line terminator or end of sequence, instead of only the beginning or end of the entire input. Can also be specified via the embeded flag (?m). |
Enable Unicode Predefined Character Classes |
Specifies conformance with the Unicode Technical Standard #18: Unicode Regular Expression Annex C: Compatibility Properties. Can also be specified via the embedded flag (?U). |
Enable Unicode-aware Case Folding |
When used with ‘Enable Case-insensitive Matching’, matches in a manner consistent with the Unicode Standard. Can also be specified via the embedded flag (?u). |
Enable Unix Lines Mode |
Indicates that only the ‘line terminator is recognized in the behavior of’. ‘,’^ ‘, and’$’. Can also be specified via the embedded flag (?d). |
Enable named group support |
If set to true, when named groups are present in the regular expression, the name of the group will be used in the attribute name as opposed to the group index. All capturing groups must be named, if the number of groups (not including capture group 0) does not equal the number of named groups validation will fail. |
Enable repeating capture group |
true로 설정하면 캡처 그룹과 일치하는 모든 문자열이 추출됩니다. 그렇지 않으면 정규식이 두 번 이상 일치하는 경우 첫 번째 일치 항목만 추출됩니다. |
Include Capture Group 0 |
캡처 그룹 0을 특성으로 포함해야 함을 나타냅니다. 캡처 그룹 0은 정규식 일치의 전체를 나타내며, 일반적으로 사용되지 않으며, 길이가 상당히 길 수 있습니다. |
Maximum Buffer Size |
정규식을 적용하기 위해 버퍼링(FlowFile 당)할 최대 데이터 양을 지정합니다. 지정된 최대 크기보다 큰 FlowFiles 은 완전히 평가되지 않습니다. |
Maximum Capture Group Length |
지정된 캡처 그룹 값에 포함할 수 있는 최대 문자 수를 지정합니다. 최대 길이를 초과하는 문자는 잘립니다. |
Permit Whitespace and Comments in Pattern |
In this mode, whitespace is ignored, and embedded comments starting with # are ignored until the end of a line. Can also be specified via the embedded flag (?x). |
관계¶
이름 |
설명 |
|---|---|
matched |
정규 식이 성공적으로 평가되고 그 결과 FlowFiles 이 수정되면 FlowFile 은 이 관계로 라우팅됩니다. |
unmatched |
FlowFiles 은 제공된 정규식이 FlowFile 의 내용과 일치하지 않을 때 이 관계로 라우팅됩니다. |