rgex
Version:
A powerful, chainable regex builder platform with comprehensive validation utilities
18 lines • 688 B
TypeScript
/**
* URL Pattern Handlers
* Handles URL-related patterns
*/
import type { TextExtractionResult } from '../../types/index.js';
/**
* Parses text for URL patterns and returns a corresponding regex.
*
* It understands phrases like:
* - "url with https"
* - "url without query"
*
* @param textForCapture The text to parse for URL patterns.
* @param testValue Optional string to test the generated regex against for confidence scoring.
* @returns A `TextExtractionResult` object if a pattern is found, otherwise `null`.
*/
export declare function parseUrlPatterns(textForCapture: string, testValue?: string): TextExtractionResult | null;
//# sourceMappingURL=urlPatterns.d.ts.map