RegexBuildOptions.Eager Field
Definition
Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll
Source: RegexBuildOptions.cs
Eager()
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, where the time to construct it is paid once and the first match should not be slower than the rest. Like System.Text.RegularExpressions.RegexOptions.Compiled, it moves work to construction.
RegexBuildOptions Eager
Returns
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