Developer tool · browser-only
Regex tester for real text.
Run a regular expression against sample text and inspect matches and capture groups without sending anything away.
Develop
Regular expression tester
No test yet
Matches will appear here.
Test regex patterns online
Use this free regex tester to check a pattern against real sample text, count matches, and inspect capture groups. It is useful for form validation, log parsing, search-and-replace planning, and code experiments.
Regex flags and groups
The flags field accepts the JavaScript regular expression flags supported by your browser. Capture groups are shown alongside each match when the pattern includes them.
Does this validate regex syntax?
Yes. Invalid JavaScript regular expressions show an error instead of running a match.