From f0fb80a62a1af931457297b53d59087160e84dd3 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 13 Jan 2015 21:44:28 +0000 Subject: [PATCH] More detail on supported groups Basically, the gem now supports everything group-related, yay! --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e9639d..ceea8d9 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,11 @@ or a huge number of possible matches, such as `/.\w/`, then only a subset of the * Boolean "Or" groups, e.g. `/a|b|c/` * Character sets (inluding ranges and negation!), e.g. `/[abc]/`, `/[A-Z0-9]/`, `/[^a-z]/` * Escaped characters, e.g. `/\n/`, `/\w/`, `/\D/` (and so on...) -* Capture groups, including named groups and backreferences(!!), e.g. `/(this|that) \1/` `/(?foo) \k/` * Non-capture groups, e.g. `/(?:foo)/` +* Capture groups, e.g. `/(group)/` + * Including named groups, e.g. `/?(group)/` + * ...And backreferences(!!!), e.g. `/(this|that) \1/` `/(?foo) \k/` + * Groups work fine, even if nested! e.g. `/(even(this(works?))) \1 \2 \3/` * **Arbitrarily complex combinations of all the above!** ## Not-Yet-Supported syntax