Skip to main content

StripBetweenOperation

A start/end delimiter pair defining a text region to strip.

Notesโ€‹

Defines a pair of start and end string matchers used by the StripBetweenTransformer to identify a region of text to remove. The inclusive flag controls whether the start and end delimiters themselves are also removed.

Usageโ€‹

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

Propertiesโ€‹

PropertyTypeRequiredDefault
endMatcherTextMatcherNoTextMatcher
inclusivebooleanNofalse
startMatcherTextMatcherNoTextMatcher

Property Detailsโ€‹

endMatcherโ€‹

Matcher for the text that closes the region to strip. Everything between the first startMatcher hit and the next endMatcher hit is removed.

inclusiveโ€‹

Whether the delimiters themselves are stripped along with the text between them. Default is false, which leaves the matched start and end text in place.

startMatcherโ€‹

Matcher for the text that opens the region to strip.