RegexFlags
Definition
Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll
Source: RegexFlags.cs
The flags of an ECMA-262 regular expression: those of RegExp, by name.
public enum RegexFlags : IComparable, ISpanFormattable, IFormattable, IConvertible
Implements
IComparable, ISpanFormattable, IFormattable, IConvertible
Fields
| Field | Type | Description |
|---|---|---|
None static |
RegexFlags |
No flags: the Annex B grammar, matched by UTF-16 code unit, as new RegExp(pattern) reads a pattern. |
HasIndices static |
RegexFlags |
The d flag. Indices are always kept, so it changes nothing. |
Global static |
RegexFlags |
The g flag: Regex.Replace replaces every match, and without it the first. |
IgnoreCase static |
RegexFlags |
The i flag: case-insensitive matching by the Canonicalize of the grammar in force, never by the culture. |
Multiline static |
RegexFlags |
The m flag: ^ and $ also match at line terminators. |
DotAll static |
RegexFlags |
The s flag: the dot also matches line terminators. |
Unicode static |
RegexFlags |
The u flag: the grammar of Unicode mode, matched by code point. |
UnicodeSets static |
RegexFlags |
The v flag: set notation and properties of strings, matched by code point. It cannot be set with Unicode. |
Sticky static |
RegexFlags |
The y flag: a match only at the position the search starts from. |
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