The natural language string describing the desired regex.
Optional
testValue: stringAn optional string to test against the generated regex for confidence scoring.
A TextExtractionResult
object containing the generated pattern, confidence, and other metadata.
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.