Regex Tester

Test regular expressions with real-time match highlighting and groups.

/ /
g
i
m

About This Tool

Test and debug regular expressions with real-time matching and highlighting. See which parts of your text match the pattern, with support for capture groups, flags, and common regex flavors.

How to Use

  1. Enter your regular expression pattern in the regex field.
  2. Paste the test string you want to match against.
  3. See matches highlighted in real-time as you type.

Frequently Asked Questions

How do I test a regex pattern?

Type your regex pattern in the top field and your test text below. Matches are highlighted instantly. Modify either field to see results update in real time.

What do regex flags like g, i, and m mean?

g (global) finds all matches, i (case-insensitive) ignores case, m (multiline) makes ^ and $ match line boundaries instead of string boundaries.