duanlu6114
duanlu6114
2016-10-20 14:48

警告:preg_match()[function.preg-match]:编译失败:在偏移22处不重复

  • regex
  • php

i'm trying to change the preg_match check from url checking and i'm getting this error

Blockquote preg_match_all(): Compilation failed: nothing to repeat at offset 22

this is the code:

preg_match_all('#\b(' . $allWordsFromProduct . ')\b#ui', $name, $matches);
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答