Skip to the content.

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

Improve this section

NOTE: The following syntax is an example based on some of the supported engines. For specific engine support, see Engines.

Engines

Engine Supported
Perl
PCRE
Boost.Regex
.NET
Oniguruma
Hyperscan
ICU
Glib/GRegex
ECMAScript