RGex Builder Platform - v1.2.0
    Preparing search index...

    Function parseHumanTextToRegex

    • Parses a human-readable string to generate a regular expression. It first attempts to find complex, compound patterns, then looks for direct keyword matches, and finally falls back to constructing a pattern from individual text components.

      Parameters

      • humanText: string

        The natural language string describing the desired regex.

      • OptionaltestValue: string

        An optional string to test against the generated regex for confidence scoring.

      Returns TextExtractionResult

      A TextExtractionResult object containing the generated pattern, confidence, and other metadata.