$regex = '/\b'.$keyword.'\b/i'; // case insensitive match
if (preg_match($regex, $linkedin_html) == 0)
{
$this->_htmlValidationFailed++;
continue;
}当我使用这段代码时..我收到错误,因为未知修饰符'v'..
请让我知道是什么问题,并帮助我整改。
发布于 2012-07-09 19:44:26
<?php
$keyword = preg_quote( $keyword, '/' );
$regex = '/\b'.$keyword.'\b/i'; // case insensitive match
if (preg_match($regex, $linkedin_html) == 0)
{
$this->_htmlValidationFailed++;
continue;
}https://stackoverflow.com/questions/11394323
复制相似问题