HomeDev Tools › Regex Tester

Regex Tester

Test regular expressions, with highlighted matches and capture groups.

Regex Tester lets you try out regular expressions against sample text and see matches highlighted in real time. Great for learning and debugging regex.

How to use Regex Tester

  1. Enter your regular expression and flags (g, i, m, etc.).
  2. Paste the sample text you want to test.
  3. See matches highlighted and a list of capture groups.

Frequently asked questions

Which regex syntax does it use?

The tool uses JavaScript regex syntax, which is compatible with most common patterns.

Why isn't my regex matching?

Check your flags: add the g flag to find all matches, i for case-insensitive matching, and m for multiline mode.

🔒 Regex Tester runs entirely in your browser — the data you enter is not sent to any server. Free, no sign-up required. See145 free dev tools more.