# `utils`: Regex and Registration Utilities ```{py:currentmodule} myform.utils ``` Helpers shared by the parser, renderer, and postprocessor: composable pattern builders (`multi_rgx()`, `define_rgx()`, `regex_dict()`), the escape-aware `NO_ESC` lookbehind, match unpacking via `parse_match()`, registration-name inference (`name_function()`), and the `DirectiveKind` taxonomy of MyST directive names. NOTE: `multi_rgx()` and `regex_dict()` deliberately stay local byte-for-byte copies of `my.ut` rather than aliases: any module-level `my` import runs the full my-basis package init (pydantic, srsly, numpy), and this module loads inside mdformat's plugin scan on the CLI cold path (see `TestPerformance.test_format_cold_start`). The characterization tests keep the copies in behavioral lockstep with basis. ```{eval-rst} .. automodule:: myform.utils :members: ```