$str = 'http://soft.sina.com/soft/2104_1.html';
preg_match("|http://(.*?)/.*/(\d+).*|i",$str,$m);
echo "域名:$m[1] \n";
echo "数字:$m[2] \n";