/// Configuration flags that modify the behavior of the regular expression engine.
#[derive(Default, Clone, Copy, Debug)]pubstructFlags{/// Controls case sensitivity.
/// - `None`: Smartcase (case-insensitive if pattern is all lowercase, sensitive otherwise).
/// - `Some(true)`: Case-insensitive (`i` flag).
/// - `Some(false)`: Case-sensitive (`c` flag).
pubignore_case:Option<bool>,
/// If true, `^` and `$` match line boundaries (`\n`) instead of just the start/end of the text (`m` flag).
pubmultiline:bool,
/// If true, `.` matches newlines (`s` flag).
pubdotall:bool,
/// If true, whitespace and comments in the pattern are ignored (`x` flag).
pubverbose:bool,
/// If true, enables Unicode support for character classes (`u` flag).
pubunicode:bool,
/// If true, indicates that the regex should match all occurrences (`g` flag).
/// Note: This flag is often handled by the caller (e.g., `find_all` vs `find`), but is preserved here for parsing.
pubglobal:bool,
}