What would be the regex to match — or not match — everything but a single digit?
For example,
stackshould matchstack overflowshould match12389237should match but2should not match
I’m on ^[^\d]+$, but apparently it doesn’t match my third condition.
EDIT:
This is for PHP by the way.
Break it down into two cases. Either match a single character that isn’t a digit, or match any string of length 2 or greater: