Posted by Rex on 11/08/29 11:43
I believe you want to read the file line by line and then try and match your regex to each line. try: $handle = @fopen("dummy.txt", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle); if( !preg_match('/^b.*?\n/',$buffer) ) echo $buffer . "<br>"; } fclose($handle); }
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming