← All tools
Regex Tester & Cheatsheet
Type a regular expression and some text — matches highlight instantly, with capture groups. A quick cheat sheet is below. Everything runs in your browser.
/
/
Matches (0)
Regex cheat sheet
About regular expressions
A regular expression (regex) is a compact pattern for finding and extracting text — email addresses, phone numbers, dates, anything with structure. They're supported in almost every programming language and text editor, which makes them one of the highest-leverage things a developer can learn.
This tester uses your browser's own JavaScript regex engine, so results match what you'd get in JavaScript. Toggle the g flag to find all matches, i for case-insensitive, and m to make ^/$ match line boundaries. Nothing you type is uploaded.