Developer Tools
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.
Test a pattern against real strings and get a plain-English, component-by-component breakdown of what it does.
\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.
Enjoyed this? Share it with a friend