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.