Feature: Capturing Groups
Home | Features | Improve this section
A Capturing Group is a subexpression that can be treated as an Atom and can be repeated using Quantifiers and referenced using Backreferences by index. A Capturing Group can be captured and returned by the matching algorithm.
Syntax
NOTE: The following syntax is an example based on some of the supported engines. For specific engine support, see Engines.
(…)
— Groups the subexpression as a single Atom. The result is captured and returned by the matching algorithm.
Engines
Engine | Supported |
---|---|
Perl | ✔ |
PCRE | ✔ |
Boost.Regex | ✔ |
.NET | ✔ |
Oniguruma | ✔ |
Hyperscan | ✔ |
ICU | ✔ |
Glib/GRegex | ✔ |
ECMAScript | ✔ |