rgex
Version:
A powerful, chainable regex builder platform with comprehensive validation utilities
19 lines • 998 B
TypeScript
/**
* Email Pattern Handlers
* Handles various email pattern variations
*/
import type { TextExtractionResult } from '../../types/index.js';
/**
* Parses text for common email address related patterns.
*
* This function identifies various email patterns such as emails with numbers in the domain,
* emails restricted to a ".com" TLD, corporate emails (by excluding common free providers),
* and emails without plus signs. It returns a structured result with the corresponding
* regex pattern, a confidence score, and a description.
*
* @param textForCapture - The natural language text to be analyzed for email patterns.
* @param testValue - An optional string to test the generated pattern against for confidence scoring.
* @returns A `TextExtractionResult` object if a pattern is successfully parsed, otherwise `null`.
*/
export declare function parseEmailPatterns(textForCapture: string, testValue?: string): TextExtractionResult | null;
//# sourceMappingURL=emailPatterns.d.ts.map