aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 5167d4d..9eb3b03 100644
--- a/README.md
+++ b/README.md
@@ -49,8 +49,8 @@ Pattern | Meaning
`2-4 pat` | Between 2 and 4 occurrences of `pat` (inclusive)
`5+ pat` | 5 or more occurrences of `pat`
`5+ pat % sep` | 5 or more occurrences of `pat`, separated by `sep` (e.g. `0+ int % ","` matches `1,2,3`)
-`pat*` `pat* % sep`| 0 or more occurrences of `pat` (optionally separated by `sep`)
-`pat+` `pat+ % sep`| 1 or more occurrences of `pat` (optionally separated by `sep`)
+`*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 in front of the current position (lookahead)
`@pat` | Capture `pat` (used for text replacement and backreferences)