DevTools / Text
Regex Tester
Test a regular expression against sample text and see matches highlighted live, entirely in your browser.
//
Runs entirely in your browser · No data uploaded
What is Regex Tester?
A regex tester lets you write a regular expression pattern and immediately see which parts of your test text it matches, without needing to run code. This is useful for validating a pattern before using it in a script, form validation, or search-and-replace.
FAQ
What do the flags mean?
g matches all occurrences instead of stopping at the first, i makes matching case-insensitive, and m allows ^ and $ to match at line breaks instead of only the start/end of the whole string.
Is my text uploaded anywhere?
No. Matching happens locally in your browser using JavaScript's built-in regex engine — nothing is sent to a server.