100% IN YOUR BROWSER • INSTANT GROUP BREAKDOWN • CHEAT SHEET

Regular Expression (Regex) Tester

Test and debug regular expressions in real time. Interactive highlighting of matches, a table of captured groups and a collection of ready-to-use, tested patterns.

Ready patterns:
/ /
Match highlighting: Matches found: 3
Captured groups:
# Full match Position index Groups ($1, $2...)
📖 Regex syntax cheat sheet ▼
Character classes:

. — any character (except \n)

\d — any digit [0-9]

\D — not a digit

\w — word character [a-zA-Z0-9_]

\s — whitespace character

Quantifiers:

* — 0 or more times

+ — 1 or more times

? — 0 or 1 time

{3} — exactly 3 times

{2,5} — 2 to 5 times

Anchors and groups:

^ — start of line

$ — end of line

\b — word boundary

(abc) — capturing group

(?:abc) — non-capturing group

🛠️

Related Developer & Office Tools

All tools →

Was this tool useful?

The site is free and has no paywalls. A small tip in TON or a share helps keep it running and add new tools.

Share in Telegram