enum ICU::Regex::Flag

Overview

Flags that modify regular expression matching behavior. Multiple flags can be combined with |.

Defined in:

icu/regex.cr

Enum Members

CaseInsensitive = 2_u32

Case-insensitive matching.

DotAll = 32_u32

Allow . to match line terminators.

Multiline = 8_u32

Enables multiline mode: ^ and $ match at line boundaries.

Comments = 4_u32

Verbose/comments mode: whitespace and # comments are ignored in patterns.

UnixLines = 1_u32

Use Unix-only line endings for ^, $, and ..

UnicodeWord = 256_u32

Set ^ and $ to match at line boundaries (same as Multiline for ICU).

ErrorOnUnknownEscapes = 512_u32

Enable error checking when searching for a matching pattern in a string.

None = 0_u32
All = 815_u32

Instance Method Summary

Instance Method Detail

def case_insensitive? #

[View source]
def comments? #

[View source]
def dot_all? #

[View source]
def error_on_unknown_escapes? #

[View source]
def multiline? #

[View source]
def none? #

[View source]
def unicode_word? #

[View source]
def unix_lines? #

[View source]