Test, build, and analyze regular expressions locally with real-time highlighting
Hop to nearby dev utilities without losing context.
Quick steps so you can get results fast.
Type the pattern without the surrounding slashes.
Type flags into the flags field: g finds all matches, i ignores case, m makes ^ and $ match at line breaks, s lets . match newlines.
Paste sample input that should and should not match.
Check each match and its capture groups before using the pattern in code.
Everything you need to know about Regex Tester.
Answers to the most common devtool questions.
Basic syntax is shared, but features such as lookbehind, named groups and flags differ between engines. Test the final pattern in the target language.
Some patterns with nested repetition, such as (a+)+, can take exponential time on certain inputs. Simplify the pattern or anchor it.
No. This tool runs in your browser with JavaScript, and what you type or paste is not sent to ToolzStack servers. Page visits are measured with Google Analytics, as described in the Cookie Policy.
Your input stays in the page while it is open. A few tools keep a short history or favourites in the local storage of this browser; you can clear it in the tool or in your browser settings.
Use Report a Bug on the page or the contact form, and include a sample input that shows the problem (remove anything sensitive first).