$regex = '/\b'.$keyword.'\b/i'; // case insensitive match
if (preg_match($regex, $linkedin_html) == 0)
{
$this->_htmlValidationFailed++;
continue;
}
When I use this code.. i get error as unknown modifier 'v'..
pls let me know what is the problem and help me rectify.
$keyword
? Probably it have a/v
and you needescape
it. – Sirree$regex = '/\b' . preg_quote($keyword) . '\b/i';
– Sirree$keyword
is. I suspect, like David, it contains something the REGEX engine is attempting to parse as REGEX grammar. – Sequential