$str = "Şimdi 08.02.2011 tarihinde 954623 nolu fatura oluşturuldu."; preg_match('@ ([0-9]+) @i',$str,$cikti); echo $cikti[1];