Skip to main content

TextBetweenOperation

A start/end delimiter pair defining a text region to extract and store.

Notesโ€‹

Defines a pair of start and end string matchers used by the TextBetweenTransformer to identify and extract a region of text. The extracted text is stored in the specified target field. The inclusive flag controls whether the matched delimiters are included in the extracted value.

Usageโ€‹

endMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
inclusive: false
onSet: APPEND
startMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
toField: string

Propertiesโ€‹

PropertyTypeRequiredDefault
endMatcherTextMatcherNoTextMatcher
fieldMatcherTextMatcherNoTextMatcher
inclusivebooleanNofalse
onSetenumNo-
startMatcherTextMatcherNoTextMatcher
toFieldstringNo-

Property Detailsโ€‹

endMatcherโ€‹

Matcher for the text that closes the region to extract. The text between the first startMatcher hit and the next endMatcher hit becomes the extracted value.

fieldMatcherโ€‹

Matches document fields based on specified patterns and methods. Use this to restrict the handler to operate only on fields whose names satisfy the matcher criteria.

inclusiveโ€‹

Whether the delimiters themselves are part of the extracted value. Default is false, which returns only the text between them.

onSetโ€‹

Defines what to do when the target field already has one or more values. When unspecified, new values are appended to existing ones by default.

Allowed Valuesโ€‹

  • APPEND
  • PREPEND
  • REPLACE
  • OPTIONAL

startMatcherโ€‹

Restricts which start references are processed, based on a pattern match against each reference.

toFieldโ€‹

The target metadata field name where the extracted or computed value will be stored. If a field of the same name already exists, the behavior is controlled by onSet.