diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-07-17 13:54:26 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-07-17 13:54:26 -0700 |
| commit | 0f059615786dcdeb436f7d570a6bb3fa2e621eb6 (patch) | |
| tree | 25d183867e3352bd4cbd6e34da34b096ddb524fa /README.md | |
| parent | 26b683ca743755d1959269cdc15dbd38c4a89aa0 (diff) | |
Simplified backrefs by only doing direct substring matching instead of
accounting for replacement strings.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ Pattern | Meaning `5+ pat % sep` | 5 or more occurrences of `pat`, separated by `sep` (e.g. `0+ int % ","` matches `1,2,3`) `*pat` | 0 or more occurrences of `pat` (shorthand for `0+pat`) `+pat` | 1 or more occurrences of `pat` (shorthand for `1+pat`) -`<pat` | `pat` matches just before the current position (backref) +`<pat` | `pat` matches just before the current position (lookbehind) `>pat` | `pat` matches just in front of the current position (lookahead) `@pat` | Capture `pat` (used for text replacement and backreferences) `@foo=pat` | Let `foo` be the text of `pat` (used for text replacement and backreferences) |
