我不知道如何解决这个错误
Warning: preg_match(): Unknown modifier '[' in
我的代码是
while(list($k,$v)=each($con2)) {
$patt="($this->block_start_word|$this->block_end_word)[[:blank:]]*([0-9a-zA-Z\_]+)[[:blank:]]*$this->block_end_delim(.*)";
if (eregi($patt,$v,$res)) {
我想将eregi的php版本更新为preg_match,我试试这个
hile(list($k,$v)=each($con2)) {
$patt="($this->block_start_word|$this->block_end_word)[[:blank:]]*([0-9a-zA-Z\_]+)[[:blank:]]*$this->block_end_delim(.*)";
if ( preg_match($patt,$v,$res)) {