regex-vs-llm-structured-text

regex vs llm structured text

affaan-m 232k ↓ 5.3k MIT updated 25d ago
Claude Code
View source ↗

What it does

  • Parsing structured text with repeating patterns (questions, forms, tables)
  • Deciding between regex and LLM for text extraction
  • Building hybrid pipelines that combine both approaches
  • Optimizing cost/accuracy tradeoffs in text processing
  • Start with regex — even imperfect regex gives you a baseline to improve
  • Use confidence scoring to programmatically identify what needs LLM help
  • Use the cheapest LLM for validation (Haiku-class models are sufficient)

Requirements & configuration

  • Flag items that may need LLM review:
  • Use confidence scoring to programmatically identify what needs LLM help

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

regex vs llm structured text

Source

Repository: https://github.com/affaan-m/everything-claude-code

regex-vs-llm-structured-text FAQ

What does the regex-vs-llm-structured-text skill do?

Decision framework for choosing between regex and LLM when parsing structured text — start with regex, add LLM only for low-confidence edge cases. Parsing structured text with repeating patterns (questions, forms, tables) Deciding between regex and LLM for text extraction

What does regex-vs-llm-structured-text require?

Flag items that may need LLM review: Use confidence scoring to programmatically identify what needs LLM help

How do I install regex-vs-llm-structured-text?

Run: npx -y skills add https://github.com/affaan-m/everything-claude-code --skill regex-vs-llm-structured-text --agent claude-code — the source lives at github.com/affaan-m/everything-claude-code.

Maintain regex-vs-llm-structured-text?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

regex-vs-llm-structured-text on getagentictools
[![regex-vs-llm-structured-text on getagentictools](https://getagentictools.com/badge/skills/affaan-m-everything-claude-code-regex-vs-llm-structured-text.svg)](https://getagentictools.com/skills/affaan-m-everything-claude-code-regex-vs-llm-structured-text?ref=badge)
npx agentictools info skills/affaan-m-everything-claude-code-regex-vs-llm-structured-text

The second line is the CLI lookup for this page — handy in READMEs and docs.