Skip to content

Count page views and project clicks with PostHog (EU servers)? It loads only if you choose Allow. Privacy

Regex Tester live preview
All projects

Regex Tester

See a regex match highlighted live instead of guessing why a pattern failed.

Debugging a regex pattern with existing tools meant no real-time visual feedback on what was actually matching.

Tech Domain · Book Dev|Published|Evidence: Live|Next.js, TypeScript

A public deployment is available to try.

Case Study

Before

Existing regex tools were either desktop-only or lacked real-time visual feedback, making it hard to understand complex patterns and debug matches quickly.

After

The page shows what a JavaScript pattern matches as you type, without leaving the browser.

How it's solved

Built a browser regex tester, now at /regex in the Devtools Workbench suite: enter a JavaScript pattern, toggle flags (g, i, m, s, u, y), and see matches highlighted live, with each match's index and capture groups listed and clear syntax errors.

Trade-offs

JavaScript RegExp only, with no pattern library. Matching runs on the main thread, so catastrophic backtracking can freeze the tab.

Related Articles

Further reading on related topics from the blog

Related Projects

More in Tech Domain · Book Dev