← Tools
Utilities

Regex Tester

Test regular expressions with real-time match highlighting and capture group inspection.

Pattern
//g
Test String71 chars
Matches8 matches
The quick Brown Fox jumps over the Lazy Dog. Alice and Bob met Charlie.

Regex Flags

  • g — Global: find all matches, not just the first
  • i — Case insensitive: A matches a
  • m — Multiline: ^/$ match line boundaries
  • s — DotAll: . matches newlines too

Common Patterns

  • \d+ — One or more digits
  • \w+ — Word characters (letters, digits, _)
  • [A-Z][a-z]+ — Capitalized word
  • (?<=\s|^)\S+ — First word of each token

Capture Groups

Wrap part of a pattern in (…) to capture it. Named groups use (?<name>…). Groups appear in the table below the output panel.