aboutsummaryrefslogtreecommitdiff
path: root/bp.1.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-07-30 19:24:35 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-07-30 19:24:35 -0700
commitba6ee18ded5e76e852dd7eab89e6cc2b420b42d2 (patch)
tree8a238dbfcf91766ee3b882d8c87a9587ca107119 /bp.1.md
parent18e8a131f58a54008512b05062382900027bf1d9 (diff)
Added strict mode for upto operator: ..=Abc
Diffstat (limited to 'bp.1.md')
-rw-r--r--bp.1.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/bp.1.md b/bp.1.md
index 60a51a9..1e02264 100644
--- a/bp.1.md
+++ b/bp.1.md
@@ -207,6 +207,13 @@ etc.)
of *skip* (e.g. `'"' ..%('\' .) '"'` opening quote, up to closing quote,
skipping over backslash followed by a single character)
+`.. =` *only* *pat*
+: Any number of repetitions of the pattern *only* up to and including *pat*
+(e.g. `"f" ..=abc "k"` matches the letter "f" followed by some alphabetic
+characters and then a "k", which would match "fork", but not "free kit") This
+is essentially a "non-greedy" version of `*`, and `.. pat` can be thought of as
+the special case of `..=. pat`
+
`<` *pat*
: Matches at the current position if *pat* matches immediately before the
current position (lookbehind). Conceptually, you can think of this as creating