我想做下面的场景:
RE PHP 100 = True
RE PHP 10001 asdadads = True
RE PHP 100sdsd01 asdadads = False
XRE PHP 1001 = FALSE
RE xPHP 1001 = FALSE
(RE) (PHP) (INTEGER) (EOF OR Some string)
我正在尝试使用这个正则表达式:
if(preg_match("/^RE[ ]PHP[ ]([\d])?$/", "RE PHP 1",$matches))