Added documentation to matcher.md and rule-based-matching.md

#More documentations can be added? Need feedback
This commit is contained in:
Source-Shen 2022-07-02 01:26:15 +08:00
parent f5fa0d0bad
commit 57ec153587
2 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,8 @@ matched:
| `?` | Make the pattern optional, by allowing it to match 0 or 1 times. | | `?` | Make the pattern optional, by allowing it to match 0 or 1 times. |
| `+` | Require the pattern to match 1 or more times. | | `+` | Require the pattern to match 1 or more times. |
| `*` | Allow the pattern to match 0 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}` | 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,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. | | `{n,}` | Require the pattern to match at least _n_ times. |

View File

@ -380,6 +380,8 @@ callbacks.
| `?` | Make the pattern optional, by allowing it to match 0 or 1 times. | | `?` | Make the pattern optional, by allowing it to match 0 or 1 times. |
| `+` | Require the pattern to match 1 or more times. | | `+` | Require the pattern to match 1 or more times. |
| `*` | Allow the pattern to match zero 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}` | 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,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. | | `{n,}` | Require the pattern to match at least _n_ times. |