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 ('' . '[.+]' > '', $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 of any character or (.+) if you want to capture

[PHP] PHP: eregi multi-line Question

2004-03-25 Thread PHPDiscuss - PHP Newsgroups and mailing lists
$cacheTime) { $file = fopen ("local file", "r"); if (!$file) { $dump = "Does not exist"; } else { while (!feof ($file)) { $line = fgets ($file); if (eregi ('', $line, $pt)) { $cntrp=$cntrp+1; $post[$cntrp]=$pt[1];

[PHP] PHP: Eregi multi-line question

2004-03-25 Thread PHPDiscuss - PHP Newsgroups and mailing lists
$cacheTime) { $file = fopen ("local file", "r"); if (!$file) { $dump = "Does not exist"; } else { while (!feof ($file)) { $line = fgets ($file); if (eregi ('', $line, $pt)) { $cntrp=$cntrp+1; $post[$cntrp]=$pt[1];