Regex Tester
Test, explain, and debug JavaScript regular expressions with live match highlighting, entirely in your browser.
Flags
Common patterns
Test string
Explanation
Type a pattern above to see a breakdown of what each part does
A regular expression (regex) is a pattern used to match, find, or replace text - the same underlying tool that powers search-and-replace in code editors, form validation, and log parsing. This tester runs JavaScript's native regex engine directly in your browser: type a pattern and a test string, and it highlights every match, breaks capture groups apart, previews replacements, and explains what each part of the pattern does in plain language. Nothing you type is ever uploaded anywhere.