diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-19 23:41:57 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-19 23:41:57 -0700 |
| commit | 355e06a58e918c6c1d39902b0a14029a16c323ba (patch) | |
| tree | 0c3aab71519db02338cd70cddbac1358da33fdb2 /README.md | |
| parent | 3f0ab96f7f1c60585be7fa39d0595674bf4f6bb1 (diff) | |
Added ~ and !~ operators as replacements for == and !=
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,8 +70,8 @@ Pattern | Meaning `@foo=pat` | Let `foo` be the text of `pat` (used for text replacement and backreferences) `pat => "replacement"` | Match `pat` and replace it with `replacement` `(pat1 @keep=pat2) => "@keep"` | Match `pat1` followed by `pat2` and replace it with the text of `pat2` -`pat1==pat2` | `pat1`, assuming `pat2` also matches with the same length -`pat1!=pat2` | `pat1`, unless `pat2` also matches with the same length +`pat1~pat2` | `pat1` when `pat2` can be found within the result +`pat1!~pat2` | `pat1` when `pat2` can not be found within the result `name:pat2` | `name` is defined to mean `pat` `# line comment` | A line comment |
