My input should be any number from 0 to 99999.Well, then why use regular expressions at all? Isn't this just a simple number comparison? How about:
if ($sid < 0 or $sid > 99_999){ ... }
In reply to Re: Filtering CGI Input
by crashtest
in thread Filtering CGI Input
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |