From 41babf9c07910cc2c22c364032aa42c5c9b82658 Mon Sep 17 00:00:00 2001 From: ashur1k Date: Mon, 14 Oct 2019 11:27:55 +0300 Subject: [PATCH] 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