Type a pattern, pick your flags, and paste a test string. Matches, capture groups, and replacements update instantly — all in your browser.
m flag)m flag)
Regex Tester lets you build, test, and debug regular expressions right in your browser. Type or paste a pattern, choose the flags you need (global, case-insensitive, multiline, dot-all, unicode, sticky), and enter a test string — every match is highlighted instantly with its index and any capture groups listed below. There is also a quick Find & Replace panel to preview a substitution before you use it in your own code, a one-click library of common patterns (email, URL, IP address, phone number, hex color, date), and a handy regex cheat sheet covering anchors, character classes, quantifiers, and groups. Everything runs locally in your browser, so nothing you type is ever sent to a server.