Corvus.Ecma262.RegularExpressions Namespace
The regular expression engine: Regex with the members of System.Text.RegularExpressions.Regex, the Match, Group and Capture results, the allocation-free ValueMatch and ValueCapture with their enumerators over UTF-16 and UTF-8, the RegexFlags of ECMA-262, and GeneratedRegexAttribute for the source generator.
Regex— a compiled pattern, and the static members for one-off useRegexFlags— the flags of ECMA-262GeneratedRegexAttribute— the matcher as code at build timeValueMatchandValueCapture— a match and a group as positions, allocating nothing
| Type | Kind | Description |
|---|---|---|
| Capture | class | A piece of the input text that a match or a group captured. |
| CaptureCollection | class | The captures of a group: one when the group took part, none otherwise. |
| GeneratedRegexAttribute | class | Marks a static partial method or property that returns a Regex for the source generator, which checks the pattern at build time (a pattern t... |
| Group | class | What one capturing group of a match captured. |
| GroupCollection | class | The groups of a match: the whole match as group 0, then each capturing group in the order of its opening parenthesis. |
| Match | class | One match of a pattern in a text, with what each of its groups captured. |
| MatchCollection | class | Every match of a pattern in a text, found as they are asked for: a global search as ECMA-262 makes one. |
| MatchEvaluator | delegate | Gives the replacement for one match. |
| Regex | class | An ECMA-262 regular expression: the grammar and the answers of ECMAScript 2025, with the shape of System.Text.RegularExpressions.Regex. It matches UTF-16 text (... |
| RegexFlags | enum | The flags of an ECMA-262 regular expression: those of RegExp, by name. |
| RegexMatchTimeoutException | class | The error of a match that was abandoned at its limit: it ran for longer than the match timeout, or it needed more backtracking memory than a match may hold. Neither is an answer. |
| RegexParseException | class | The error of a pattern that is not a valid ECMA-262 pattern in the grammar of its flags. |
| RegexPatternTooLargeException | class | The error of a pattern that is over one of the limits of size, which bound the time and the memory that reading and compiling a pattern take whatever the pattern holds. It is not the error of a pat... |
| SpanMatchEvaluator | delegate | Gives the replacement for one match in a UTF-16 text by writing it. |
| Utf8MatchEvaluator | delegate | Gives the replacement for one match in a UTF-8 text by writing it. |
| Utf8ValueMatchEnumerator | struct | Enumerates the matches of a pattern in a UTF-8 text as a global search, allocating nothing. |
| Utf8ValueSplitEnumerator | struct | Enumerates the pieces a UTF-8 text splits into at the matches of a pattern, as positions, allocating nothing (see... |
| ValueCapture | struct | What one group captured, with nothing allocated: the position and the length in the units of the text, or that the group did not take part. |
| ValueMatch | struct | Where a match is in a text, with nothing allocated: the position and the length, in the units of the text. |
| ValueMatchEnumerator | struct | Enumerates the matches of a pattern in a UTF-16 text as a global search, allocating nothing. |
| ValueSplitEnumerator | struct | Enumerates the pieces a UTF-16 text splits into at the matches of a pattern, as positions, allocating nothing (see... |
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