Developer ToolsDebugging ToolsFree Tool
Regex Tester
Test a regex pattern against sample text and see every match, using the real JavaScript regex engine.
How to Use Regex Tester
- 1Enter your regex pattern
- 2Add a line with ---, then your test text
- 3Click Process
- 4Review the list of matches found
Frequently Asked Questions
Your regex pattern, then a line with just ---, then the text to test it against.
Real — it constructs an actual JavaScript RegExp with the global flag and calls .match() against your test string, so results reflect genuine regex engine behavior.
No — this tool only lists the matched substrings. Use the Regex Debugger tool for match index and named/numbered group details.
No — matching happens entirely in your browser.
Related Tools
Regex Debugger
Test a regex against sample text and see each match with its index position and any named/numbered capture groups.
Regex Replace
Run a real find-and-replace on text using a regex pattern and replacement string.
Regex Split
Split text into parts using a regex pattern as the delimiter, and see each resulting piece.
Regex Reference
View a reference sheet of common regex patterns and syntax basics — the same static content as the Regex Generator tool.