Regex Debugger

Debug regular expressions step by step. See matches, groups, and test against multiple strings.

6.7Kuses
9/10(435)
//g
Flags:
Matches
3
Groups
9
Lines Matched
2/3
Call 123-456-7890 or 987-654-3210 today.
Match 1 at index 5: "123-456-7890"Groups: [1: "123"][2: "456"][3: "7890"]
Match 2 at index 21: "987-654-3210"Groups: [1: "987"][2: "654"][3: "3210"]
No match here.
No match
Another number: 555-123-4567
Match 1 at index 16: "555-123-4567"Groups: [1: "555"][2: "123"][3: "4567"]

Quick Reference

.Any character
\dDigit [0-9]
\wWord char
\sWhitespace
^Start of line
$End of line
*0 or more
+1 or more
?0 or 1
{n}Exactly n
[abc]Char class
()Capture group
|Alternation
\bWord boundary
(?:)Non-capture
(?=)Lookahead

Features

  • Real-time regex matching
  • Capture group display
  • Multi-line test input
  • Configurable flags (g, i, m, s)
  • Match highlighting
  • 100% client-side
⚡ Pro OptionsSponsored

Some links on this page are affiliate links. If you click and make a purchase, we may earn a commission at no extra cost to you.

Recommended Products

Ad

Affiliate Disclosure: As an Amazon Associate, ToolBird earns from qualifying purchases. Links above are affiliate links — if you buy through them, we may earn a small commission at no extra cost to you.

Disclaimer: This tool is provided as-is for informational and educational purposes only.

ToolBird Assistant

Find the right tool instantly

Hey! I'm ToolBird Assistant. Tell me what you need and I'll find the right tool for you.