Regex Tester & Builder
Write a regex, paste some text, and see matches highlighted instantly. Pick from common patterns to get started fast.
//g
Flags:
Common Regex Patterns
Click any pattern to load it into the tester with sample text.
About this tool
Regular expressions are one of those things you don't use every day, but when you need them, you really need them. This tool lets you test patterns against real text and see matches highlighted as you type. It's handy for building patterns for form validation, log parsing, data extraction, or just figuring out why your regex isn't matching what you think it should. The common patterns section gives you a head start for the most frequent use cases.
Live matching as you type your pattern
Highlights all matches in the test string
Toggle flags like global, case insensitive, and multiline
10 common patterns ready to use with one click
Shows match index and length for every result
Runs entirely in your browser, nothing leaves your device