rgex
Version:
A powerful, chainable regex builder platform with comprehensive validation utilities
22 lines • 889 B
TypeScript
/**
* Length Constraint Pattern Handlers
* Handles "between X and Y characters", "exactly X characters", etc.
*/
import type { TextExtractionResult } from '../../types/index.js';
/**
* Parses text for length constraints and returns a regex pattern.
*
* It understands phrases like:
* - "between X and Y characters"
* - "exactly X characters"
* - "at least X characters"
* - "at most X characters"
* - "minimum X characters"
* - "maximum X characters"
*
* @param textForCapture The text to parse for length constraints.
* @param testValue Optional string to test the generated regex against for confidence scoring.
* @returns A `TextExtractionResult` object if a constraint is found, otherwise `null`.
*/
export declare function parseLengthConstraints(textForCapture: string, testValue?: string): TextExtractionResult | null;
//# sourceMappingURL=lengthConstraints.d.ts.map