Regex Tester
Test regular expressions against your text with live match highlighting.
About the Regex Tester
The Regex Tester lets you try a regular expression against your own text with live match highlighting and a count, so you can build and debug a pattern without guesswork. It supports the usual flags for global, case-insensitive and multiline matching.
Frequently asked questions
Common culprits are an unescaped special character, the wrong flags, or anchors like ^ and $ that are stricter than you expected. Build the pattern up a piece at a time and watch the highlighting to see where it breaks.
This uses JavaScript's regex engine, which is close to but not identical to those in other languages. Most common patterns behave the same, but advanced features like lookbehind can differ.