diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-07-30 19:24:35 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-07-30 19:24:35 -0700 |
| commit | ba6ee18ded5e76e852dd7eab89e6cc2b420b42d2 (patch) | |
| tree | 8a238dbfcf91766ee3b882d8c87a9587ca107119 /bp.1.md | |
| parent | 18e8a131f58a54008512b05062382900027bf1d9 (diff) | |
Added strict mode for upto operator: ..=Abc
Diffstat (limited to 'bp.1.md')
| -rw-r--r-- | bp.1.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |
