About Regex Hut
Regex Hut is a free online regular expression tester and debugger with live match highlighting, replace preview and plain-English explanations.
What you can do on Regex Hut
- Live Match Highlighting – Test a pattern against sample text with the g, i, m, s and u flags.
- Match Details – See every match with its position and capture groups.
- Replace Preview – Try out substitutions before you use them in code.
- Pattern Library – Start from ready-made patterns for emails, URLs, dates and more.
- Pattern Explainer – Break a regular expression down into plain-English pieces.
- Share Links – Copy a link that reopens your pattern, flags and test text.
Open the Regex Tester & Debugger
How it works
- Free to use: no account, sign-up or payment is required.
- Patterns and test text are evaluated with your browser's own JavaScript regex engine. They are not sent to our servers.
- Works in modern desktop and mobile browsers, with nothing to install.
- The interface is available in English and Chinese.
- The site is supported by advertising, which keeps every tool free.
Who runs Regex Hut
Regex Hut is an independent project run by a solo developer. The goal is simple: fast, uncluttered tools that respect your privacy, open instantly and never ask you to register.
Why we built it
Regular expressions are powerful but hard to read, and a small mistake can silently match the wrong text. Regex Hut highlights matches the moment you type and explains each part of a pattern, so you can debug an expression before it goes into production code.
Feedback
Found a bug, have an idea for a new feature or spotted something that could be clearer? We read every message; please get in touch through our Contact page.