preg_match("/^([0-9]+|MAX)$/",$volume);
hey there,
the above regular expression is supposed to match any positive number or the string "MAX", however it fails when $volume = "MAX";
any ideas?
Try \bMAX\b Word Boundaries
And possibly yoru expression should be code[/code]