protected function extractHtmlTagValue($content, $tag, $matchAttributeName, $matchAttributeValue, $valueAttributeName)
{
preg_match_all("#<{$tag}[^>]*{$matchAttributeName}=['\"].*?{$matchAttributeValue}.*?['\"][^>]*{$valueAttributeName}=['\"](.+?)['\"][^>]*/?>#i", $content, $matches1);
preg_match_all("#<{$tag}[^>]*{$valueAttributeName}=['\"](.+?)['\"][^>]*{$matchAttributeName}=['\"].*?{$matchAttributeValue}.*?['\"][^>]*/?>#i", $content, $matches2);
$result = array_merge($matches1[1], $matches2[1]);
return empty($result) ? false : $result[0];
}