Hi, I'm just putting the final touches on a little rating-type script and in an attempt to disallow any other input, (especially any back-door attempts), I've got the following:
$number =~ /\d{1,2}/;
$number != 0;
$number < 11;
Is there a way to write this as one, separate regex?
To clarify, only a number from 1 to 10 can be entered from a select box in the script.
Anyone?
$number =~ /\d{1,2}/;
$number != 0;
$number < 11;
Is there a way to write this as one, separate regex?
To clarify, only a number from 1 to 10 can be entered from a select box in the script.
Anyone?