Except it should be single "|"s in your regexp, not "||"s
But why use a regexp at all?
if ($expire < 1 || $expire > 14) { die "Don't tamper with me!"; }
In reply to Re^2: IF Statement Testing
by ikegami
in thread IF Statement Testing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |