(Update: this question's main focus is to test the "nothing else" part)
Given a string s, which can contain anything, what is the most correct regexp in Ruby to check whether it is a single digit and nothing else? (a single digit and only a single digit).