Hi
I want a php script to search throw html files finding a word,
i try this script, it display what is inside the html tags
e.g /body /html
can anybody modify the preg expresiion to find any thing out of html tags, that what i want.
thanks
$filename= 'test.html';
$data = file_get_contents( $filename );
$count = preg_match_all( "/.*?<(.*?)>.*/i", $data, $matches );
if( $count ) {
echo "<pre>count = (".htmlspecialchars($count).")<br><p><br>";
echo "<br>";
print_r( $matches );
}
else
echo "No Matches";