php来&源gao@dai!ma.com搞$代^码%网搞gaodaima代码 正则问题
$url=’http://www.scjj.gov.cn:8088/xxcx/jsp/searchAction!getDzjk.action’;
用正则,取出
http://www.scjj.gov.cn:8088。。
怎么写。。
——解决方案——————–
- PHP code
$url='http://www.scjj.gov.cn:8088/xxcx/jsp/searchAction!getDzjk.action';preg_match_all( "/////(*?)///", $str, $tmp);var_dump($tmp);
------解决方案--------------------
- PHP code
preg_match("/\/\/(.*?)\//",$str,$tmp);var_dump($tmp);
------解决方案--------------------