eraseBetween
Remove the substring between two boundary patterns.
Syntax
Section titled “Syntax”s = eraseBetween(str, startMark, endMark)s = eraseBetween(str, startMark, endMark, 'Boundaries', bv)Description
Section titled “Description”Removes from str the substring lying between startMark and endMark. The 'Boundaries' option controls whether the markers themselves are kept ('exclusive', default) or removed ('inclusive').
Examples
Section titled “Examples”eraseBetween('foo<bar>baz', '<', '>') % 'foo<>baz'eraseBetween('foo<bar>baz', '<', '>', 'Boundaries', 'inclusive') % 'foobaz'