Skip to main content

Module patterns

Module patterns 

Source
Expand description

Pattern detection for string values.

Uses lazy_static regexes for efficient pattern matching of common string formats like UUIDs, emails, dates, URLs, and IP addresses.

§Performance

  • Pattern matching: ~100-500ns per string
  • Regex compilation: Once at first use (lazy)

Functions§

detect_pattern
Detect pattern type from a string value.
matches_pattern
Check if a value matches a specific pattern.