Structs§
- Pattern
Cache - LRU cache for compiled regex patterns.
Functions§
- batch_
compile - Compile multiple patterns, skipping invalid ones. When
validateis true, patterns flagged byvalidate_pattern_safetyare also skipped. - compile
- Compile a one-shot pattern with case-insensitive + multiline flags.
- validate_
pattern_ safety - Check whether a pattern is safe from catastrophic backtracking with the full reference safety chain.