Regex tester
Write a JavaScript regular expression and see matches highlighted as you type, with capture groups and a replace preview. Nothing leaves your browser.
//g
Uses your browser's JavaScript regex engine, so syntax follows ECMAScript (lookbehind, named groups and the u and s flags are supported). Only the first 1,000 matches are listed.