TOOL · 58 · Data & Utility
Test JavaScript regular expressions live — highlighted matches, capture groups and replacement preview.
In short
Regex Tester lets you build and debug JavaScript regular expressions live — highlighted matches, capture groups, all six flags and a replacement preview using $1/$2 backreferences.
Processed 100% in your browser — your files never leave your device.
Highlighted
Contact Alice at alice@example.com or Bob at bob@site.co.
2 matches
alice@example.comgroups: $1="alice", $2="example.com"bob@site.cogroups: $1="bob", $2="site.co"Step · 01
Write a JavaScript regular expression pattern and toggle the flags you want.
Step · 02
Matches highlight live in the sample text; capture groups appear in the match list.
Step · 03
Optionally provide a replacement string (supports $1, $2 backreferences).