正则表达式
返回列表
url:
if(isset($url)){
echo $url 有下列裢接:
;
$fcontents = file($url);
while(list(,$line)=each($fcontents)){
while(eregi((href[[:space:]]*=[[:space:]]*?[[:alnum:]:@/._-]+?)(.*),$line,$regs)){
$regs[1] = eregi_replace((href[[:space:]]*=[[:space:]]*?)([[:alnum:]:@/._-]+)(?),\2,$regs[1]);
echo $regs[1]
;
$line = $regs[2];
}
}
}
?>
http://www.bkjia.com/phpjc/532485.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/532485.htmltecharticlehtml headtitle正则表达式/title/head body a href=./返回列表/abr form action=?echo $php_self;? method=post url:input type=text name=url value=?echo $url?input...