I am trying to create a preg_match test to allow numbers only. Definitely cannot use is_numeric or any variants.
Is this as safe as I can get?
/^\d*$/
And additionally, how would I set a min max range, for example check the number is between 6 and 10 digits?