Developer Tool
Regex Tester
Test JavaScript regular expressions, inspect matches and preview replacements.
Regular Expression
Enter a JavaScript regular expression without the surrounding slashes.
g Global
i Ignore case
m Multiline
s Dot all
Test Text
Matches update automatically as you type.
Highlighted Matches
Matching text is highlighted below.
Matching text will appear here.
Matches
Inspect each match, its position and capture groups.
Replacement Preview
Test replacement values such as $1, $2 or $&.
Replacement output will appear here.
Your text stays in your browser.
Regular expressions are evaluated locally using your browser's JavaScript engine.