hi,
i trie to read a meta-tag content ot of a html file,
but the preg_match i use does work.
this is what i fand to match:
<meta-name="searchresult" content="Boring text here">
i only want to get the 'Boring text here' whitout the quotes.
the code i use is:
if (preg_match("'<meta-name=\"searchresult\" content=\"(.*)(\"\>)$'is", $targetText, $content)) {
$pageTitle = $content[1];
}
but it returns 'Boring text here">...and all the rest of the html code.
any ideas?
thanks.