I want to use preg_match_all for working with a websites' source code.
Actually my code looks like this:
Code: Select all
preg_match_all("!<span class=\"strong\">CR: </span>(.*?)</p>!",$p2,$con);
$erh = $con[1][0];
Code: Select all
<span class="strong">CR: </span>
NC
</p>
How can I manage it to receive only NC as a result for $con[1][0]?