Skip to the content.

Feature: Conditional Expressions

Home | Features | Improve this section

A Conditional Expression checks a condition and evaluates its first alternative if the condition is true; otherwise, it evaluates its second alternative.

Syntax

Improve this section

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

Conditions

The following conditions are supported:

Engines

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