How to Test Regex Online
Test and debug regular expressions in real-time. Free regex tester with match highlighting, capture groups, and cheat sheet. Supports JavaScript regex syntax.
Open Regex Tester →Step-by-Step Guide
Enter your pattern
Type your regular expression in the pattern field. The tool supports full JavaScript regex syntax including lookaheads, lookbehinds, and named groups.
Add test strings
Paste one or more test strings in the input area. You can test against single lines or multi-line text blocks to validate your pattern works correctly.
See matches highlighted
Matching text is highlighted instantly as you type. Capture groups are color-coded so you can see exactly what each group captures.
Set flags and refine
Toggle regex flags: global (g), case-insensitive (i), multiline (m), dotAll (s). Refine your pattern until all expected matches are correct.
Try It Now — Free
No signup, no download. Runs entirely in your browser.
Open Regex Tester