Regex Tester
Write a pattern and test it against any text. All matches are highlighted live with index and group info.
How to Use the Regex Tester
- Enter your regular expression pattern in the pattern field (without surrounding slashes).
- Set the desired flags:
g(global),i(case-insensitive),m(multiline), ors(dotAll). - Paste or type your test text in the text area below.
- All matches are highlighted in real time as you type — match count, indices, and capture groups are shown below the text.
About the Regex Tester
Regular expressions are a powerful pattern-matching language used across virtually every programming language. This tester uses JavaScript's native RegExp engine, making it ideal for testing patterns destined for Node.js, browser JavaScript, or TypeScript projects. Matches are highlighted directly in the text as you type, with no need to click a button. The tool displays each match's start index, captured groups, and total match count. All testing happens locally in your browser — no data is transmitted anywhere.