Regex Tester

Test JavaScript regular expressions with live match highlighting, capture groups, replace mode, and flag toggles.

Developer Tools
Ad
/ /
g i m s u
TEST STRING
OUTPUT
Enter a pattern and test string to see matches

Common use cases

Frequently asked questions

Which regex flavor does this use?

JavaScript (ECMAScript) regex. This is the same engine your browser uses, so patterns work identically in JS code.

What flags are supported?

g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), y (sticky).

Related tools