Ver originalpreg_match('%<a.*?href=["\'](.*?id\.2440.*?)[\'"].*?>(.*?)</a>%s', $matches);print_r($matches[1]);