Regex Tester

Test regular expressions live — highlight matches, count them, toggle flags as tiles, and read capture groups.

/ / g

How to use

Type a pattern, tap the flag tiles you want, and enter a test string — matches highlight live and are counted, with capture groups from the first match listed below. Uses your browser's own regular-expression engine, so it behaves exactly like JavaScript.