.*?<\/span>/s', $result, $matchs); // var_dump($matchs); echo trim(strip_tags($matchs[0]));