proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« squid mib | Main | HSRP and VRRP S-MLT - prevent single point of failure »

October 14, 2004

php preg_match

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/10/14/000395.html

一个匹配的函数
if(preg_match("/^\s*define\s*(\w+)\s*{/", $line, $m)) {
$m[0] 是匹配上的全行
$m[1] 是()里面的内容 和perl一样


foreach ( $arr as $i )

if ( file_exists($filename) )

$content = file($filename); 

本blog WWW

Posted by windtear at October 14, 2004 11:50 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.