Tier 5 · Conjurermatch
Digits And Nothing Else
Match strings made up entirely of digits, with at least one digit.
This is the anchor lesson in one challenge. Without ^ and $ your pattern answers "is there a digit in here?" — a completely different question, and the reject cases will tell you so.
Your pattern0 chars · par 5
//
Flags
Start typing — tests run as you go.0 of 6 visible tests passing
Test cases
123must match7must match12amust not matcha12must not match1 2must not match(empty string)must not match
+ 8 hidden tests, checked when you submit. They are what stops a pattern that only fits the examples above.