Regex::CompileOptions - Crystal 1.10.0

# alias Regex::CompileOptions

##
Overview

Represents compile options passed to `Regex.new`.

This alias is supposed to replace `Options`.

##
Alias Definition

`Regex::Options`

##
Defined in:

regex.cr

##
Constant Summary

ANCHORED = `16_u64`

  Force pattern anchoring at the start of the subject.

DOLLAR_ENDONLY = `32_u64`
DOTALL = `2_u64`
ENDANCHORED = `2147483648_u64`

  Force pattern anchoring at the end of the subject.

  Unsupported with PCRE.

EXTENDED = `8_u64`

  Ignore white space and `#` comments.

FIRSTLINE = `262144_u64`
IGNORE_CASE = `1_u64`

  Case insensitive match.

MATCH_INVALID_UTF = `4294967296_u64`

  Enable matching against subjects containing invalid UTF bytes. Invalid bytes never match anything. The entire subject string is effectively split into segments of valid UTF.

  Read more in the PCRE2 documentation.

  When this option is set, `MatchOptions::NO_UTF_CHECK` is ignored at match time.

  Unsupported with PCRE.

  NOTE This option was introduced in PCRE2 10.34 but a bug that can lead to an infinite loop is only fixed in 10.36 (https://github.com/PCRE2Project/pcre2/commit/e0c6029a62db9c2161941ecdf459205382d4d379).

MULTILINE = `6_u64`

  Multiline matching.

  Equivalent to `MULTILINE | DOTALL` in PCRE and PCRE2.

NO_UTF_CHECK = `8192_u64`

  Do not check the pattern for valid UTF encoding.