From 09d5779281034e1be001ab3b44b408cda646b61c Mon Sep 17 00:00:00 2001 From: original-taste Date: Sun, 30 Oct 2022 17:57:48 +0530 Subject: [PATCH] added capturing group reference term (#1896) --- regexp.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/regexp.md b/regexp.md index e46e44318..30bcd8ac2 100644 --- a/regexp.md +++ b/regexp.md @@ -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