pub struct FlagSets {
pub has_indices: bool,
pub ignore_case: bool,
pub global: bool,
pub dot_all: bool,
pub multiline: bool,
pub sticky: bool,
pub unicode: bool,
pub unicode_sets: bool,
}
Expand description
Boolean fields representing regular expression flags.
Fields§
§has_indices: bool
The d
flag, which causes capture indices to be returned when matching.
The ExecResult
methods captures
and named_captures
return None
when this flag is not set.
(MDN)
ignore_case: bool
The i
flag, which enables case-insensitive matching.
(MDN)
global: bool
The g
flag, which enables global matching.
(MDN)
dot_all: bool
The s
flag, which causes the .
special character to match additonal line terminators.
(MDN)
multiline: bool
The m
flag, which enables multiline matching.
(MDN)
sticky: bool
The y
flag, which enables sticky matching.
(MDN)
unicode: bool
The u
flag, which enables some unicode-related features.
Can’t be set at the same time as the v
(unicode_sets
) flag.
(MDN)
unicode_sets: bool
The v
flag, which enables a superset of the features enabled by the u
(unicode
) flag.
Can’t be set at the same time as the u
flag.
(MDN)