From ba6ee18ded5e76e852dd7eab89e6cc2b420b42d2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 30 Jul 2021 19:24:35 -0700 Subject: Added strict mode for upto operator: ..=Abc --- bp.1 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bp.1') diff --git a/bp.1 b/bp.1 index 77966c0..8bab758 100644 --- a/bp.1 +++ b/bp.1 @@ -237,6 +237,15 @@ over instances of \f[I]skip\f[R] opening quote, up to closing quote, skipping over backslash followed by a single character) .TP +\f[B].. =\f[R] \f[I]only\f[R] \f[I]pat\f[R] +Any number of repetitions of the pattern \f[I]only\f[R] up to and +including \f[I]pat\f[R] (e.g.\ \f[B]\[dq]f\[dq] ..=abc \[dq]k\[dq]\f[R] +matches the letter \[lq]f\[rq] followed by some alphabetic characters +and then a \[lq]k\[rq], which would match \[lq]fork\[rq], but not +\[lq]free kit\[rq]) This is essentially a \[lq]non-greedy\[rq] version +of \f[B]*\f[R], and \f[B].. pat\f[R] can be thought of as the special +case of \f[B]..=. pat\f[R] +.TP \f[B]<\f[R] \f[I]pat\f[R] Matches at the current position if \f[I]pat\f[R] matches immediately before the current position (lookbehind). -- cgit v1.2.3