Skip to main content
Log in

Mojo module

pattern_utils

Utility functions for regex pattern handling.

This module provides helper functions for processing regex patterns, handling character classes, and special symbols. These utilities are used internally by the regex module to implement pattern matching functionality.

The module includes:

  • Character class definitions for common regex patterns like \d, \w, \s.
  • Functions for expanding character class patterns like [a-z0-9].
  • Utilities for handling special regex syntax.

Future enhancements will include more sophisticated handling of regex constructs such as lookaheads, lookbehinds, and backreferences.

Structs

Functions