Regex from Examples

Regex from Examples MCP Connector for Claude

A+

Generate ranked regular expression candidates from input and extraction pairs.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

This MCP server uses heuristic pattern analysis to generate the top 3 regex candidates based on provided text pairs. By using generate_regex_candidates, you can identify patterns for fixed strings, numbers, dates, and emails. You can also use evaluate_pattern_coverage to see exactly which examples match or miss a specific pattern, and analyze_pattern_complexity to understand the specificity of your regex.

regexpattern-matchingheuristicstext-analysisautomation

3 tools expose this connector's capabilities to your AI agent.

analyze_pattern_complexity

Classifies a regex pattern into its structural category

evaluate_pattern_coverage

Provides a detailed breakdown of regex performance

generate_regex_candidates

Analyzes input-extraction pairs to produce regex candidates

See how to talk to your AI agent using Regex from Examples.

Generate a regex for these pairs: 'user@mysite.com' -> 'user@mysite.com', 'admin@test.org' -> 'admin@test.org'.

The top candidate is `^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$`.

Analyze the complexity of `\d{3}-\d{3}`.

The pattern `\d{3}-\d{3}` is classified as NUMERIC with HIGH specificity.

Check coverage for `\d+` on '123' -> '123', 'abc' -> 'abc'.

The regex `\d+` successfully matched '123' but failed to match 'abc'.

Use the `generate_regex_candidates` tool with your input and extraction pairs.

Related Connectors