域名状态可能是:
xinwen.xxx.com
xinwen.xxx.cn
xinwen.xxx.net
http://xinwen.xxx.com/
php 如何用正则表达式 preg_replace 得到, xinwen
(?:http\:\/\/)?([^.]+)\.xxx\.(?:(com|cn|net))
$s=<<<TXTxinwen.xxx.comxinwen.xxx.cnxinwen.xxx.nethttp://xinwen.xxx.com/TXT;preg_match_all('#(^|/)([^/\.]+)\.#m',$s,$ar);print_r($ar[2]);
正则都要mark学习 弱项