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*|\?)$/
[download]
where the empty string is just a zero digit number, but that's just me.
Comment on
Re^3: need help with a Regex
Download
Code
In Section
Seekers of Perl Wisdom