MT ToolHub logoToolHub
๐Ÿ”

Regex Tester

Test regular expressions with live matches.

Loading toolโ€ฆ

How to use the Regex Tester

  1. 1Type your regex pattern and flags (like gi).
  2. 2Paste the text you want to test against.
  3. 3View match count, groups, and highlighted results live.

About the Regex Tester

Free online regex tester. Enter a pattern and flags, paste test text, and see live match count, captured groups, and highlighted matches instantly in your browser.

Part of our Developer Tools collection. Browse all tools.

Frequently asked questions

Which regex syntax does this support?
It uses the browser's native JavaScript RegExp engine, so all standard JS regex syntax and flags (g, i, m, s, u, y) are supported.
Why aren't all my matches highlighted?
Highlighting and finding every match require the global flag. Add g to your flags to match all occurrences and see them highlighted in the text.

More Developer Tools

Popular tools