[PHP] PHP: Eregi multi-line question

2004-03-25 Thread PHPDiscuss - PHP Newsgroups and mailing lists
?php $rootPath = ; $cacheTime= 0; $Diff = (time() - filemtime($rootPath.stuff.dat))/60; $cntrp=0; $cntrb=0; $cntrt=0; $cntrd=0; $cntrc=0; if ($Diff $cacheTime) { $file = fopen (local file, r); if (!$file) {

[PHP] PHP: eregi multi-line Question

2004-03-25 Thread PHPDiscuss - PHP Newsgroups and mailing lists
?php $rootPath = ; $cacheTime= 0; $Diff = (time() - filemtime($rootPath.stuff.dat))/60; $cntrp=0; $cntrb=0; $cntrt=0; $cntrd=0; $cntrc=0; if ($Diff $cacheTime) { $file = fopen (local file, r); if (!$file) {

Re: [PHP] PHP: Eregi multi-line question

2004-03-25 Thread John W. Holmes
From: PHPDiscuss - PHP Newsgroups and mailing lists [EMAIL PROTECTED] if (eregi ('trtd valign = topspan class = gray' . '[.+]' '/span/td/tr/table', $line, $cont)) [.+] is going to match a literal period or plus sign and only one of them. You either want just .+ to match one or more