I had problems 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]: Trailing delimiter '^' not found in
php regex preg-match pcre
fingerman Jan 08 2018-11-11T00: 00Z
source share