Regex Tester

Free

Test and debug regular expressions instantly. See matches highlighted in real time.

//g
Flags:

How to Use This Regex Tester

  1. Enter your regular expression pattern in the pattern field.
  2. Toggle flags (g, i, m, s, u) as needed.
  3. Type or paste the text to test against in the test area.
  4. Matches are highlighted in real time as you type.
  5. The match details panel shows each match, its index, and any capture groups.

Common Regex Patterns

Email^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$
URLhttps?:\/\/[\w\-]+(\.[\w\-]+)+[\/\w\-?=&#.]*
IPv4\b(?:\d{1,3}\.){3}\d{1,3}\b
Hex color#[0-9a-fA-F]{3,6}\b

Frequently Asked Questions

Related Tools