Just changed a little bit to suit my requirements but getting error.
$source ='<!-- Top 5 Leaderboard --><div id="leaderboard">Top 5 Leaderboard adfasfadf ILX (New for 2013!)
Overview: The least expensive route to Hondas premium-label goodness
Drivetrain: Two four-cylinder engines to choose from as well as a gas-electric hybrid front-wheel-drive only
</div><!-- /Top 5 Leaderboard -->';
$matches = null;$returnValue = preg_match('/<!-- Top 5 Leaderboard(.*)</div><!--/', $source, $matches);print_r($matches);
<?php
$source ='<!-- Top 5 Leaderboard --><div id="leaderboard">adfasfadf ILX (New for 2013!)
Overview: The least expensive route to Hondas premium-label goodness
Drivetrain: Two four-cylinder engines to choose from as well as a gas-electric hybrid front-wheel-drive only
</div><!-- /Top 5 Leaderboard -->';
$pattern = '/<!-- Top 5 Leaderboard -->(.*)<!-- \\/Top 5 Leaderboard -->/s';
preg_match($pattern, $source, $matches);
echo htmlspecialchars($matches[1]);
?>
By default the fullstop doesn’t match a newline character and you have to use the s modifier to force it to.