gossamer/regexp_flag
Types
Flags that modify how a RegExp matches.
Unicode and UnicodeSets are mutually exclusive — passing both
to regexp.new_with returns an error.
pub type RegExpFlag {
Global
IgnoreCase
Multiline
DotAll
Unicode
UnicodeSets
Sticky
HasIndices
}
Constructors
-
Globalg— find all matches, not just the first. -
IgnoreCasei— case-insensitive matching. -
Multilinem—^and$match line boundaries, not just string ends. -
DotAlls—.matches newlines. -
Unicodeu— treat the pattern as Unicode code points. -
UnicodeSetsv— extended Unicode set features (supersedesu). -
Stickyy— match starting atlast_index, no skipping. -
HasIndicesd— include match indices inMatchresults.