diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-10 23:49:17 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-10 23:49:17 -0700 |
| commit | e6aafbc1ac9bb88ac062b7ab359b6f15c322c3cd (patch) | |
| tree | c9ffc0f9e7a5615efa04d67a2f89218e35043db7 | |
| parent | 17dbe5d9e8fcbe2c5f2f494658868b28857a25ca (diff) | |
Updated readme
| -rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -37,6 +37,7 @@ suffix operators. Pattern | Meaning -------------------|--------------------- +`"foo"`, `'foo'` | The literal string `foo`. There are no escape sequences within strings. `pat1 pat2` | `pat1` followed by `pat2` `pat1 / pat2` | `pat1` if it matches, otherwise `pat2` `..pat` | Any text up to and including `pat` (except newlines) @@ -48,6 +49,8 @@ Pattern | Meaning `$` | The end of a line `__` | Zero or more whitespace characters (including newlines) `_` | Zero or more whitespace characters (excluding newlines) +`|` | A word boundary (i.e. the left or right edge of a word) +`{foo}` | The literal string `foo` with word boundaries on both ends (shorthand for `|"foo"|`) `` `c `` | The literal character `c` `` `a-z `` | The character range `a` through `z` `` `a,b `` | The character `a` or the character `b` |
