| 广告招租,e-mail:yesize@hotmail.com
|
|
广告招租,e-mail:yesize@hotmail.com
<html> <head><title>正则表达式</title></head> <body> <a href="./">返回列表</a><br> <form action="<?echo $PHP_SELF;?>" method="post"> URL:<input type="text" name="url" value="<?echo $url?>"><input type="submit" value="获取所有裢接"> </form> <? if(isset($url)){ echo "$url 有下列裢接:<br>"; $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]<br>"; $line = $regs[2]; } } } ?> </body> </html>
版权说明:作品来源于网上,版权归作者所有,如果无意中侵犯了您的版权,请来信告知,本站将在3个工作日内删除。yesize@hotmail.com |
|