Skip to content

Regex.ParseFlags Method

Definition

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

ParseFlags(string)

Reads the flags as the string new RegExp(pattern, flags) takes.

public static RegexFlags ParseFlags(string flags)

Parameters

Name Type Description
flags string The string.

Returns

RegexFlags

The flags.

Exceptions

Exception Description
RegexParseException A letter is not a flag, or is repeated.

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