Skip to the content.

Engine: ECMAScript

Home | Engines | Reference | Improve this section

Languages

Improve this section

Features

The following features are supported:

The following features are not supported:

Feature: Flags

Main article | Reference | Back to top | Improve this section: 1, 2

Flags control certain aspects of the matching behavior of a pattern.

Syntax

Improve this section

The following flags are supported:

See Also

Improve this section

Feature: Anchors

Main article | Reference | Back to top | Improve this section: 1, 2

Anchors match the start or end of a line.

Syntax

Improve this section

See Also

Improve this section

Feature: Buffer Boundaries

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Word Boundaries

Main article | Reference | Back to top | Improve this section: 1, 2

A Word Boundary is an Atom that matches the start or the end of a word.

Syntax

Improve this section

See Also

Improve this section

Feature: Text Segment Boundaries

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Continuation Escape

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Alternatives

Main article | Reference | Back to top | Improve this section: 1, 2

An Alternative represents two or more branches in a pattern. If first branch of a pattern fails to match, each alternative is attempted from left to right until a match is found.

Syntax

Improve this section

Feature: Wildcard

Main article | Reference | Back to top | Improve this section: 1, 2

A Wildcard matches a single, non-newline character.

Syntax

Improve this section

Feature: Character Classes

Main article | Reference | Back to top | Improve this section: 1, 2

A Character Class is an Atom that specifies a set of characters to match a single character in the set.

Syntax

Improve this section

See Also

Improve this section

Feature: Posix Character Classes

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Negated Posix Character Classes

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Collating Elements

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Equivalence Classes

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Character Class Escapes

Main article | Reference | Back to top | Improve this section: 1, 2

A Character Class Escape is a single character escape that represents an entire character class. They can be used as an element of a Character Class or as an Atom. It is often the case that a lower-case escape character is the inclusive set, while an upper-case variant of the same character excludes that set.

Syntax

Improve this section

See Also

Improve this section

Feature: Line Endings Escape

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Character Property Escapes

Main article | Reference | Back to top | Improve this section: 1, 2

A Character Property Escape is an escape sequence used to match a character with a specific character property.

Syntax

Improve this section

See Also

Improve this section

Feature: Character Class Nested Set

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Character Class Intersection

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Character Class Union

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Character Class Subtraction

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Character Class Symmetric Difference

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Character Class Complement

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Quoted Characters

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

Feature: Quantifiers

Main article | Reference | Back to top | Improve this section: 1, 2

Quantifiers specify repetition of an Atom. By default, quantifiers are “greedy” in that they attempt to match as many instances of the preceding Atom as possible to satisfy the pattern before backtracking.

Syntax

Improve this section

See Also

Improve this section

Feature: Lazy Quantifiers

Main article | Reference | Back to top | Improve this section: 1, 2

Lazy Quantifiers specify repetition of an Atom, but attempt to match as few instances of the preceding Atom as possible to satisfy the pattern before advancing.

Syntax

Improve this section

See Also

Improve this section

Feature: Possessive Quantifiers

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Capturing Groups

Main article | Reference | Back to top | Improve this section: 1, 2

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

Improve this section

See Also

Improve this section

Feature: Named Capturing Groups

Main article | Reference | Back to top | Improve this section: 1, 2

A Named Capturing Group is a subexpression that can be captured and returned by the matching algorithm. A Named Capturing Group is also an Atom and can be repeated using Quantifiers and referenced using Backreferences by name.

Syntax

Improve this section

See Also

Improve this section

Feature: Non-Capturing Groups

Main article | Reference | Back to top | Improve this section: 1, 2

A Non-capturing Group is a subexpression that can be treated as an Atom and can be repeated using Quantifiers but cannot be referenced using Backreferences. A Non-capturing Group is not captured by the matching algorithm.

Syntax

Improve this section

See Also

Improve this section

Feature: Backreferences

Main article | Reference | Back to top | Improve this section: 1, 2

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

Syntax

Improve this section

See Also

Improve this section

Feature: Comments

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Line Comments

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Modifiers

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

See Also

Improve this section

Feature: Branch Reset

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

Feature: Lookahead

Main article | Reference | Back to top | Improve this section: 1, 2

A Lookahead is a zero-width assertion that matches if the provided pattern would match the characters to the right of the current position.

Syntax

Improve this section

See Also

Improve this section

Feature: Lookbehind

Main article | Reference | Back to top | Improve this section: 1, 2

A Lookbehind is a zero-width assertion that matches if the provided pattern would match the characters to the left of the current position.

Syntax

Improve this section

See Also

Improve this section

Feature: Non-Backtracking Expressions

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

Feature: Recursion

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

Feature: Conditional Expressions

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

Feature: Subroutines

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

Feature: Callouts

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.

Feature: Backtracking Control Verbs

Main article | Back to top | Improve this section: 1, 2

❌ This feature is not supported.