Build regex iteratively
Start with the smallest pattern that matches the basic shape, then add anchors, groups, or flags one step at a time.
That's usually faster than trying to land the perfect regex in one shot.
Test JavaScript regular expressions with flags, live matching, and a readable result list.
This uses the browser's JavaScript regex engine. Patterns may behave differently in PCRE, Python, or Ruby.
Yes.
It uses the browser's JavaScript regular expression engine.
Yes. Add flags like `g`, `i`, `m`, `s`, `u`, or `y` and watch how the result changes.
Regex syntax differs by language and engine. A pattern that works in PCRE or Python may not work the same way in JavaScript.
Start with the smallest pattern that matches the basic shape, then add anchors, groups, or flags one step at a time.
That's usually faster than trying to land the perfect regex in one shot.
This tester uses the browser's JavaScript regex engine, so patterns may behave differently in Python, Ruby, or PCRE.
If the regex is heading into another runtime, re-check the advanced parts there before you trust the result.
Learn regular expressions basics with real-world examples, common patterns, and practical advice from years of debugging regex.
Useful regex patterns for log parsing, validation, text processing, and more with detailed explanations and real-world use cases.
Paste your input at the top and the result shows up right below. The FAQ and related tutorials are there if you want more.