From 57ec1535871ee450cf34249fd502653ee3d45000 Mon Sep 17 00:00:00 2001 From: Source-Shen <82353723+Source-Shen@users.noreply.github.com> Date: Sat, 2 Jul 2022 01:26:15 +0800 Subject: [PATCH] Added documentation to matcher.md and rule-based-matching.md #More documentations can be added? Need feedback --- website/docs/api/matcher.md | 2 ++ website/docs/usage/rule-based-matching.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/website/docs/api/matcher.md b/website/docs/api/matcher.md index ab88c4194..ba3892998 100644 --- a/website/docs/api/matcher.md +++ b/website/docs/api/matcher.md @@ -69,6 +69,8 @@ matched: | `?` | Make the pattern optional, by allowing it to match 0 or 1 times. | | `+` | Require the pattern to match 1 or more times. | | `*` | Allow the pattern to match 0 or more times. | +| `+?` | Require the pattern to match non-greedily 1 or more times. | +| `*?` | Allow the pattern to match non-greedily 0 or more times. | | `{n}` | Require the pattern to match exactly _n_ times. | | `{n,m}` | Require the pattern to match at least _n_ but not more than _m_ times. | | `{n,}` | Require the pattern to match at least _n_ times. | diff --git a/website/docs/usage/rule-based-matching.md b/website/docs/usage/rule-based-matching.md index f096890cb..ef46ccf52 100644 --- a/website/docs/usage/rule-based-matching.md +++ b/website/docs/usage/rule-based-matching.md @@ -380,6 +380,8 @@ callbacks. | `?` | Make the pattern optional, by allowing it to match 0 or 1 times. | | `+` | Require the pattern to match 1 or more times. | | `*` | Allow the pattern to match zero or more times. | +| `+?` | Require the pattern to match non-greedily 1 or more times. | +| `*?` | Allow the pattern to match non-greedily 0 or more times. | | `{n}` | Require the pattern to match exactly _n_ times. | | `{n,m}` | Require the pattern to match at least _n_ but not more than _m_ times. | | `{n,}` | Require the pattern to match at least _n_ times. |