Regex Tester
Test JavaScript regular expressions against your text. See each match with its position, numbered groups and named groups.
Test JavaScript regular expressions against your text. See each match with its position, numbered groups and named groups.
Regular expressions describe text patterns. Writing them is easier when you can see matches as you edit.
Enter a pattern and flags, paste test text, and the tool lists every match with its index and capture groups. It uses your browser's JavaScript regular expression engine.
JavaScript (ECMAScript). Features differ in other languages like Python or PCRE.
g finds all matches, i ignores case, m makes ^ and $ match per line, s lets . match newlines, u enables Unicode, y is sticky.
Add the g flag to find all matches.
No. Matching runs in your browser.