Feature: Branch Reset
Home | Features | Improve this section
A Branch Reset resets the subexpression count at the start of each Alternative (|
), which affects numbering for Backreferences and captured results returned from the matching algorithm.
Syntax
NOTE: The following syntax is an example based on some of the supported engines. For specific engine support, see Engines.
(?|…)
— Resets the subexpression count at the start of each Alternative.
Engines
Engine | Supported |
---|---|
Perl | ✔ |
PCRE | ✔ |
Boost.Regex | ✔ |
.NET | ❌ |
Oniguruma | ❌ |
Hyperscan | ❌ |
ICU | ❌ |
Glib/GRegex | ❌ |
ECMAScript | ❌ |