UNPKG

rgex

Version:

A powerful, chainable regex builder platform with comprehensive validation utilities

20 lines 895 B
/** * Positional Pattern Handlers * Handles "starts with", "ends with", and "contains" patterns */ import type { TextExtractionResult } from '../../types/index.js'; /** * Parses text for positional patterns and returns a corresponding regex. * * It understands phrases like: * - "starts with '...'" * - "ends with '...'" * - "contains '...'" * * @param textForCapture The text to parse for positional patterns. * @param testValue Optional string to test the generated regex against for confidence scoring. * @param originalText Optional original, case-sensitive text to preserve casing in the regex. * @returns A `TextExtractionResult` object if a pattern is found, otherwise `null`. */ export declare function parsePositionalPatterns(textForCapture: string, testValue?: string, originalText?: string): TextExtractionResult | null; //# sourceMappingURL=positionalPatterns.d.ts.map