• Creates a typed wrapper around a regex with named groups

    Type Parameters

    • T extends string

    Parameters

    • regex: RegExp

    Returns TypedRegex<T>