From c43e4781763ee3f3f148e821a88e99c6b80c58db Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 14 Dec 2020 18:11:33 -0800 Subject: Added % operator to .. --- bp.1 | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'bp.1') diff --git a/bp.1 b/bp.1 index 60a5e8f..03874ef 100644 --- a/bp.1 +++ b/bp.1 @@ -72,9 +72,6 @@ A chain of patterns, pronounced \fI\fB-then-\fI\fR A series of ordered choices (if one pattern matches, the following patterns will not be attempted), pronounced \fI\fB-or-\fI\fR -.B .. -Any text \fBup-to-and-including\fR the following pattern, if any (multiline: \fB...\fR) - .B . \fBAny\fR character (multiline: $.) @@ -102,10 +99,10 @@ The literal \fBcharacter-\fI\fR .B `\fI\fB-\fI\fR The \fBcharacter-range-\fI\fB-to-\fI\fR -.B \\\fI\fR +.B \\\\\fI\fR The \fBescape-sequence-\fI\fR (\fB\\n\fR, \fB\\x1F\fR, \fB\\033\fR, etc.) -.B \\\fI\fB-\fI\fR +.B \\\\\fI\fB-\fI\fR The \fBescape-sequence-range-\fI\fB-to-\fI\fR .B !\fI\fR @@ -132,6 +129,13 @@ The \fBescape-sequence-range-\fI\fB-to-\fI\fR \fI\fB-separated-by-\fI\fR (equivalent to \fI \fB0+(\fI\fB)\fR) +.B .. \fI\fR +Any text \fBup-to-and-including\fR \fI\fR (multiline: \fB...\fR) + +.B .. \fI\fB % \fI\fR +Any text \fBup-to-and-including\fR \fI\fR, but skipping over instances of \fI\fR. +E.g. \fB`"..`" % (`\\.) + .B <\fI\fR \fBJust-after-\fI\fR (lookbehind) @@ -151,12 +155,12 @@ be a string, and it may contain references to captured values: \fB@0\fR \fB@[\fIfoo\fR]\fR (the capture named \fIfoo\fR in \fI\fR), etc. .B \fI\fB == \fI\fR -Will match only if \fI\fR and \fI\fR both match and have the exact -same length. Pronounced \fI\fB-assuming-it-equals-\fI\fR +Will match only if \fI\fR matches and \fI\fR matches the text of \fI\fR's +match. Pronounced \fI\fB-if-it-matches-\fI\fR .B \fI\fB != \fI\fR -Will match only if \fI\fR matches, but \fI\fR doesn't also match with the -same length. Pronounced \fI\fB-unless-it-equals-\fI\fR +Will match only if \fI\fR matches and \fI\fR doesn't match the text of +\fI\fR's match. Pronounced \fI\fB-unless-it-matches-\fI\fR .B \fI\fB != \fI\fR Will match only if \fI\fR and \fI\fR don't both match and have the -- cgit v1.2.3