Regex module

Options

structSource

Pattern flags, also settable inside the pattern: (?i) (?m) (?s) (?U) (?x) (?R) (?-u).

Fields

case_insensitive: bool
i: letters match either case (Unicode simple case folding)
multi_line: bool
m: ^ and $ match at line breaks, not just the ends of the text
dot_all: bool
s: . also matches \n
swap_greed: bool
U: x* is lazy and x*? greedy
ignore_space: bool
x: whitespace is ignored and # starts a comment
crlf: bool
R: with m, \r\n also ends a line, and . does not match \r
unicode: := true
u: classes and \b are Unicode-aware; off, they are ASCII and match bytes

See also