1 2 3 4 5 6 7 8
<?php $result = 'title>2014</a>'; //твой полный шаблон preg_match('|title>(\d+)</a>|', $result, $year); //вырезаем $year = $year[1]; //массив в переменную echo $year; //вывод ?>