$re = '/<li id="hit-[0-9]+">(.*?)<\/li>/is';
$str = '<li id="hit-11">
<h2>
<a href="http://www.sonymobile.com/gb/products/phones/xperia-z2/" class="heading">Xperiaâ„¢ <b>Z2</b> | Android Phone - Sony Smartphones (UK)</a>
</h2>
<p><b>...</b> Xperiaâ„¢ <b>Z2</b>. The world&#39;s best camera and camcorder in a waterproof<br> smartphone*. <b>...</b> The Xperia <b>Z2</b> makes the moment unforgettable. Meet Xperia <b>...</b> </p>
<p>
<a href="http://www.sonymobile.com/gb/products/phones/xperia-z2/" class="link">http://www.sonymobile.com/gb/products/phones/xperia-z2/</a>
</p>
</li>
<li id="hit-2">
<h2>
<a href="http://www.sonymobile.com/gb/products/phones/xperia-z2/accessories/"
class="heading">Xperia <b>Z2</b> Accessories | Smartphone accessory - Sony <b>...</b></a>
</h2>
<p><b>...</b> Xperiaâ„¢ <b>Z2</b>. The world&#39;s best camera and camcorder in a waterproof<br> smartphone*. <b>...</b> Then watch your life played back to you on your Xperia <b>Z2</b>. <b>...</b> </p>
<p>
<a href="http://www.sonymobile.com/gb/products/phones/xperia-z2/accessories/"
class="link">http://www.sonymobile.com/gb/products/phones/xperia-z2/accessories/</a>
</p>
</li>';
preg_match($re, $str, $matches, PREG_OFFSET_CAPTURE, 0);
// Print the entire match result
var_dump($matches);
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php