Regex Tester

Test a pattern against real strings and get a plain-English, component-by-component breakdown of what it does.

Enter a regex pattern to get started.

Quick reference for common patterns

\d — any digit · \w — any letter, digit, or underscore · \s — whitespace

+ — one or more · * — zero or more · ? — zero or one

^ — start of string · $ — end of string

[abc] — matches any one of a, b, or c · [^abc] — matches anything except a, b, or c

The most common regex bug isn't a wrong pattern — it's forgetting that . matches any character unless escaped as \., which is why “match a period” patterns often accidentally match everything.

More from Developer Tools

View all →
UUID / GUID Generator Generate v1, v4, and v7 UUIDs instantly. JWT Encoder / Decoder Decode a token's header, payload, and signature status, or build and sign one — entirely in your browser. Unix Timestamp Converter Convert Unix time to and from any timezone.

Enjoyed this? Share it with a friend

Email