Skip to content

RegexFlags

1 min read

Import: import system.text;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

RegexFlags

Compile-time regex options. Combine with | (RegexFlags.Global | RegexFlags.IgnoreCase).

public enum RegexFlags

None

No optional matching flags are enabled.

None = 0

Global

Match every occurrence rather than only the first.

Global = 1

IgnoreCase

Ignore case when matching.

IgnoreCase = 2

Multiline

Allow line anchors to match individual lines.

Multiline = 4

DotAll

Allow a dot to match newline characters.

DotAll = 8

has

Returns whether this flag set contains flag.

public fun has(flag: RegexFlags): bool