added capturing group reference term (#1896)
This commit is contained in:
parent
271e0b7c5d
commit
09d5779281
11
regexp.md
11
regexp.md
|
@ -59,11 +59,12 @@ description: |
|
||||||
|
|
||||||
### Groups
|
### Groups
|
||||||
|
|
||||||
| Pattern | Description |
|
| Pattern | Description |
|
||||||
| --------- | ------------------------------ |
|
| --------- | ------------------------------------------------------- |
|
||||||
| `(abc)` | Capture group |
|
| `(abc)` | Capture group |
|
||||||
| `(a|b)` | Match `a` or `b` |
|
| `(a|b)` | Match `a` or `b` |
|
||||||
| `(?:abc)` | Match `abc`, but don't capture |
|
| `(?:abc)` | Match `abc`, but don't capture |
|
||||||
|
| `\1` | Subsituted with text matched of the 1st capturing group |
|
||||||
|
|
||||||
|
|
||||||
### Quantifiers
|
### Quantifiers
|
||||||
|
|
Loading…
Reference in New Issue