Regex Tester

Test regular expressions with real-time matching, highlighting, and group capture.

Regex Pattern

โ€”

Match Details (0)

0 matches

Test String

0 chars

Quick Actions

Common Patterns

Regex Pattern

//g

Test String

0 chars

Regex Quick Reference

.Any character
\dDigit [0-9]
\wWord char [a-zA-Z0-9_]
\sWhitespace
*0 or more
+1 or more
?0 or 1
{n,m}n to m times
^Start of string
$End of string
[abc]Character class
[^abc]Negated class
(abc)Capture group
(?:abc)Non-capture group
a|bAlternation
\bWord boundary

Features:

  • Real-time regex matching and highlighting
  • Support for all JavaScript regex flags (g, i, m, s, u)
  • Capture groups and named groups display
  • Match index positions
  • Common regex patterns library
  • Sample text for quick testing
  • Copy pattern as /regex/flags format
  • Regex quick reference cheatsheet
  • All processing happens client-side
  • Save patterns for later (requires login)