Skip to content

RegexBuildOptions

Definition

Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll
Source: RegexBuildOptions.cs

When a regular expression builds what its matches use. These are options of the engine, not of the pattern, so they are not among the RegexFlags, which are the flags of ECMAScript.

public enum RegexBuildOptions : IComparable, ISpanFormattable, IFormattable, IConvertible

Implements

IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

Field Type Description
None static RegexBuildOptions The automata a match uses (the one over ASCII that decides IsMatch, and those that speed a search) and the program that tracks every group are built when a match first needs them, so a regular ex...
Eager static RegexBuildOptions Everything is built when the regular expression is constructed, so its first match costs what a later one does. For a regular expression made once and matched many times, such as a validator's, whe...

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue