Regex Debugger

Test, debug & explain regular expressions

Back
100% Private: All regex testing happens locally in your browser.
Complete:
/pattern/g
Flags:

Enter a regex pattern to see an explanation.

0
Matches
0
Groups
-
First
-
Last
// Matches will be highlighted here...
Enter regex and test string to see match details

Powerful Regex Testing

  • Real-Time Testing: Test patterns instantly as you type.
  • Visual Highlighting: See all matches highlighted in your text.
  • Match Details: View positions, groups, and captured values.
  • Pattern Explanation: Understand what each part of your regex does.

Perfect For

  • Developers: Debug regex patterns before implementing in code.
  • Data Validation: Test patterns for form validation and parsing.
  • Text Processing: Extract specific patterns from documents.
  • Learning: Understand regex with visual feedback.