请教高手下面的正则表达式怎么写? 不好意思,就是从这个网页中抓取http://202.123.66.216//server-status?auto显示内容为:BusyWorkers: 1/IdleWorkers: 49/CPULoad: 1.77293/ReqPerSec: .507522 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 源内容没有BusyWorkers和IdleWorkers而且值也不一样,不知道如何计算 <?php$content = 'Total Accesses: 23522059Total kBytes: 150011086CPULoad: .0489641Uptime: 11298856ReqPerSec: 2.08181BytesPerSec: 13595.3BytesPerReq: 6530.52BusyServers: 15IdleServers: 12Scoreboard: _WWWWW__W_W__W__W__WWWWW__W.';preg_match_all("/^.+BusyWorkers: 1\/IdleWorkers: 49\/CPULoad: 1.77293\/ReqPerSec: .507522.*$/is", $content, $matches);print_r($matches);?> 求教一个php上传文件的诡异问题 提交时检查数据是否已经存在 菜鸟写的数据库类,希望指点! apache rewrite多域名为啥不行呢?[win2003server下] 请教FLASH高手! 新年快乐,大家帮帮忙,提供一个春节小flash,我想放在网站首页 如何取得随机数? PHP忽然不能放问MYSQL,提示访问补拒绝,这是怎么回事啊 php连oracel,如何实现事件回滚? 强烈要求对php进行理论和发展性的讨论啊! 一个正则匹配问题,麻烦解答 很菜鸟的问题?
而且值也不一样,不知道如何计算
$content = 'Total Accesses: 23522059
Total kBytes: 150011086
CPULoad: .0489641
Uptime: 11298856
ReqPerSec: 2.08181
BytesPerSec: 13595.3
BytesPerReq: 6530.52
BusyServers: 15
IdleServers: 12
Scoreboard: _WWWWW__W_W__W__W__WWWWW__W.';
preg_match_all("/^.+BusyWorkers: 1\/IdleWorkers: 49\/CPULoad: 1.77293\/ReqPerSec: .507522.*$/is", $content, $matches);
print_r($matches);
?>