PHP regular expressions: No ending delimiter '^' found in

前端 未结 3 901
无人及你
无人及你 2020-11-22 09:04

I\'ve been having some trouble with regular expressions.

This is my code

$pattern = \"^([0-9]+)$\";

if (preg_match($pattern, $input))
   echo \"yes         


        
3条回答
提交回复
热议问题