From e25ef7af85271d0078c0a590e5e32e3bf8d778fd Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Wed, 16 Feb 2022 19:42:10 +0100 Subject: [PATCH] Add REGEX non-capturing group note --- RegularExpressions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RegularExpressions.md b/RegularExpressions.md index fa663ce..0409c89 100644 --- a/RegularExpressions.md +++ b/RegularExpressions.md @@ -50,7 +50,8 @@ Adding `?` *after* the qualifier makes it perform the match in non-greedy or min ## Groups -`(__)` REGEX subgroup +`(__)` capturing group +`(?:__)` non-capturing group `(REGEX_1 | REGEX_2)` match in multiple regex (R1 OR R2) `(?=__)` match only if `__` is next substring `(?!__)` match only if `__` is not next substring