我在正则表达式方面遇到了一些麻烦。
以下是我的代码
$pattern = "^([0-9]+)$";
if (preg_match($pattern, $input))
echo "yes";
else
echo "nope";
我运行它并得到:
中未找到结束定界符'^'警告:preg_match() [function.preg-match]:在
我在正则表达式方面遇到了一些麻烦。
以下是我的代码
$pattern = "^([0-9]+)$";
if (preg_match($pattern, $input))
echo "yes";
else
echo "nope";
我运行它并得到:
中未找到结束定界符'^'警告:preg_match() [function.preg-match]:在