Regex Tester

Test JavaScript regular expressions live: matches are highlighted as you type, capture groups are listed, and you can preview a replacement. Everything runs in your browser.

Flags: g global, i ignore case, m multiline, s dot matches newline, u Unicode, y sticky.

Highlighted matches

Match details

#MatchIndexGroups

Replace

Tips