added capturing group reference term (#1896)

This commit is contained in:
original-taste 2022-10-30 17:57:48 +05:30 committed by GitHub
parent 271e0b7c5d
commit 09d5779281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -59,11 +59,12 @@ description: |
### Groups
| Pattern | Description |
| --------- | ------------------------------ |
| `(abc)` | Capture group |
| `(a|b)` | Match `a` or `b` |
| `(?:abc)` | Match `abc`, but don't capture |
| Pattern | Description |
| --------- | ------------------------------------------------------- |
| `(abc)` | Capture group |
| `(a|b)` | Match `a` or `b` |
| `(?:abc)` | Match `abc`, but don't capture |
| `\1` | Subsituted with text matched of the 1st capturing group |
### Quantifiers