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
-
CharacterClass
: Represents a character class in a regular expression.
Functions
-
expand_character_class
: Expand a character class pattern to its member characters. -
get_common_character_classes
: Get a dictionary of common character classes used in regex.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!