From 41babf9c07910cc2c22c364032aa42c5c9b82658 Mon Sep 17 00:00:00 2001 From: ashur1k Date: Mon, 14 Oct 2019 11:27:55 +0300 Subject: [PATCH 1/2] Update regexp.md Added patterns of groups. --- regexp.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/regexp.md b/regexp.md index 183a73188..b84f3aab8 100644 --- a/regexp.md +++ b/regexp.md @@ -47,9 +47,12 @@ description: | ### Groups -| Pattern | Description | -| ------- | ------------- | -| `(abc)` | Capture group | +| Pattern | Description | +| --------- | ------------------------- | +| `(abc)` | Capture group | +| `(a|b)` | Match either a or b | +| `(?:abc)` | Match everything enclosed | + ### Quantifiers From df11d9ed8bb48d1b8673e4f1ab4974511b8a8c24 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Tue, 15 Oct 2019 20:24:15 +1100 Subject: [PATCH 2/2] Update regexp.md --- regexp.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/regexp.md b/regexp.md index b84f3aab8..24a6519c5 100644 --- a/regexp.md +++ b/regexp.md @@ -47,11 +47,11 @@ description: | ### Groups -| Pattern | Description | -| --------- | ------------------------- | -| `(abc)` | Capture group | -| `(a|b)` | Match either a or b | -| `(?:abc)` | Match everything enclosed | +| Pattern | Description | +| --------- | ------------------------------ | +| `(abc)` | Capture group | +| `(a|b)` | Match `a` or `b` | +| `(?:abc)` | Match `abc`, but don't capture | ### Quantifiers