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
- YAML
- JSON
- XML
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
{
"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
}
}
<stripBetweenOperation>
<endMatcher>
<ignoreCase>false</ignoreCase>
<ignoreDiacritic>false</ignoreDiacritic>
<matchEmpty>false</matchEmpty>
<method>BASIC</method>
<negateMatches>false</negateMatches>
<partial>false</partial>
<pattern>string</pattern>
<replaceAll>false</replaceAll>
<trim>false</trim>
</endMatcher>
<inclusive>false</inclusive>
<startMatcher>
<ignoreCase>false</ignoreCase>
<ignoreDiacritic>false</ignoreDiacritic>
<matchEmpty>false</matchEmpty>
<method>BASIC</method>
<negateMatches>false</negateMatches>
<partial>false</partial>
<pattern>string</pattern>
<replaceAll>false</replaceAll>
<trim>false</trim>
</startMatcher>
</stripBetweenOperation>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
endMatcher | TextMatcher | No | TextMatcher |
inclusive | boolean | No | false |
startMatcher | TextMatcher | No | TextMatcher |
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.