monster-regex 0.3.0

A custom regex spec
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Configuration flags that modify the behavior of the regular expression engine.
#[derive(Default, Clone, Copy, Debug)]
pub struct Flags {
    pub ignore_case: Option<bool>,
    /// If true, `^` and `$` match line boundaries (`\n`) instead of just the start/end of the text (`m` flag).
    pub multiline: bool,
    /// If true, `.` matches newlines (`s` flag).
    pub dotall: bool,
    /// If true, whitespace and comments in the pattern are ignored (`x` flag).
    pub verbose: bool,
    /// If true, enables Unicode support for character classes (`u` flag).
    pub unicode: 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.
    pub global: bool,
    pub max_backtrack_steps: Option<u64>,
}