Regex Tester
Test regular expressions with live match highlighting.
No matches.
About this tool
Regular expressions are powerful and easy to get wrong. This free regex tester lets you try patterns against sample text with match feedback. Iterate on capture groups before you drop the expression into production code or a find-replace pass.
How to use
- Enter your regular expression pattern.
- Paste sample text you want to match against.
- Set flags (such as global or case-insensitive) if available.
- Inspect matches and adjust the pattern until it behaves.
Frequently asked questions
Browser JavaScript RegExp flavor. Patterns that rely on other engines (PCRE,.NET) may differ slightly.