Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 每个短语以点结尾_Php_Regex - Fatal编程技术网

Php 每个短语以点结尾

Php 每个短语以点结尾,php,regex,Php,Regex,我有一个regex/'.'?'/谁给了我这个结果: string(10) "employeeId" string(38) "Identity codes are not configured yet." string(18) "orghead_rep_manger" string(61) "Please select reporting manager to current organisation head."

我有一个regex/'.'?'/谁给了我这个结果:

string(10) "employeeId"
string(38) "Identity codes are not configured yet."
string(18) "orghead_rep_manger" 
string(61) "Please select reporting manager to current organisation head." 
我想检查以点结尾的字符串:

尚未配置标识码

请选择向当前组织负责人汇报的经理

对句点使用\转义符。与字符串结尾标记$组合的字符


尝试正则表达式:?结果如下:array13{[0]=>string45员工ID已存在。请重试。[1]=>string84 FlashMessenger->AddMessageArraySucces=>已成功添加组织负责人。[2]=>string45员工ID已存在。请重试。我只希望:员工ID已存在。请重试。组织负责人添加成功。员工ID已存在。请重试。Thanks@KaderBendahmane,我已经更新了答案
/\.$/