rgex
Version:
A powerful, chainable regex builder platform with comprehensive validation utilities
19 lines • 786 B
TypeScript
/**
* Text Formatting Pattern Handlers
* Handles uppercase, spaces, alphanumeric patterns
*/
import type { TextExtractionResult } from '../../types/index.js';
/**
* Parses text for formatting patterns and returns a corresponding regex.
*
* It understands phrases like:
* - "uppercase only" / "all caps"
* - "no spaces"
* - "alphanumeric only"
*
* @param textForCapture The text to parse for formatting 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 parseTextFormattingPatterns(textForCapture: string, testValue?: string): TextExtractionResult | null;
//# sourceMappingURL=textFormattingPatterns.d.ts.map