Ver original$texto=<p><i>A�o</i><span>2011</span></p>preg_match_all("#<p><i>A(.*?)o</i><span>(\d*)</span></p>#",$based,$ano);echo $ano[2][0];