in reply to Re^2: need help with a Regex
in thread need help with a Regex

You probably don't need the capturing parens. I'd write it as
/^(?:\d*|\?)$/
where the empty string is just a zero digit number, but that's just me.