Einzelnen Beitrag anzeigen
  #11  
Alt 19.10.2004, 10:55:44
c4 c4 ist offline
SELFPHP Guru
 
Registriert seit: Jul 2002
Ort: Oberursel
Alter: 54
Beiträge: 4.748
Du hattest z. B. nach issued; ein Leerzeichen weggelassen...

Damit tut's:
PHP-Code:
<?php
$f
=file('foo.txt');

for (
$i=0$i<count($f); $i++) {
    if (
strstr($f[$i], 'Total of')) {
        
preg_match_all("/Total of (d*) licenses? issued;  Total of (d*) licenses? in use/isU"$f[$i], $temp);
        
print_r($temp);
    }
}

exit;
?>
__________________
sic!
--> http://dbCF.de/
Mit Zitat antworten