Home/Developer/Regex Tester

Regex Tester

Test JavaScript regular expressions against your own sample text and see matches highlighted as you type. Building a regex by trial and error is far faster when you can watch it match in real time, and this tester shows every match, the full list of captured groups and a running count so you know your pattern does what you intend. You can toggle the common flags for global, case-insensitive, multiline and dotall matching, and invalid patterns produce a clear error instead of silently failing. Enter a pattern and paste text to match against. Everything runs in your browser using the native regex engine, so your patterns and the data you test them on are never uploaded anywhere.