I've been having some trouble with regular expressions.
This is my code
$pattern = "^([0-9]+)$";
if (preg_match($pattern, $input))
   echo "yes";
else
   echo "nope";
I run it and get:
Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in
 
     
     
    