Consume input until (or until and including) the terminal match
desired terminal match
default false. Whether to consume the terminal match. If this is set to true, the value of the match will be the match of the terminal pattern. Otherwise it will the preceding, skipped content.
pattern we don't want to see before the desired determinal match. If we see this pattern before, the match breaks.
pattern we don't want to see before the desired determinal match. If we see this pattern before, the match breaks.
default false. Whether to consume the terminal match. If this is set to true, the value of the match will be the match of the terminal pattern. Otherwise it will the preceding, skipped content.
desired terminal match
Generated using TypeDoc
Inspired by SNOBOL BREAK: http://www.snobol4.org/docs/burks/tutorial/ch4.htm In SNOBOL. Used internally in Concat. Also exposed to end users in Skip functions. BREAK(S) matches "up to but not including" any character in S. The string matched must always be followed in the subject by a character in S. Unlike SPAN and NOTANY, BREAK will match the null string. This implementation goes beyond SNOBOL, in that it allows the break to consume the end token, and also allows the ability to specify a pattern that must not be found.