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: boolThe 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: boolThe i flag, which enables case-insensitive matching.
(MDN)
global: boolThe g flag, which enables global matching.
(MDN)
dot_all: boolThe s flag, which causes the . special character to match additonal line terminators.
(MDN)
multiline: boolThe m flag, which enables multiline matching.
(MDN)
sticky: boolThe y flag, which enables sticky matching.
(MDN)
unicode: boolThe 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: boolThe 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)