Skip to the content.

Feature: Backreferences

Home | Features | Improve this section

Backreferences allow a pattern to re-match a previously matched capture group1 2 either by number (n) or by name.

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 ✔

See Also

Improve this section