Build a Regex Playground CLI
Build an interactive terminal tool for testing and learning regular expressions with real-time highlighting.
Requirements
Interactive REPL: type a regex pattern and test string, see matches highlightedShow all match groups, indices, and captured groupsBuilt-in cheat sheet accessible with /helpHistory of tested patterns (navigate with up/down arrows)Support common regex flags (g, i, m, s)Show "plain English" explanation of what the regex doesTechnical Notes
Use Node.js readline for the REPL interface. Highlight matches using ANSI color codes in the output.
Bonus Points
Pattern library with common patterns (email, URL, phone, etc.)Performance benchmark (time to match against large input)Export matches as JSON