emsy Posted April 29, 2010 Report Share Posted April 29, 2010 Kā var, piem. no milzīgas lapas sorces dabūt ārtā tikai 2-3 rindiņas ar noteiktu saturu?? Link to comment Share on other sites More sharing options...
Aleksejs Posted April 29, 2010 Report Share Posted April 29, 2010 grep "noteiktais saturs" lielais_fails.dat Link to comment Share on other sites More sharing options...
emsy Posted April 29, 2010 Author Report Share Posted April 29, 2010 Warning: preg_grep() expects parameter 2 to be array, integer given in C:\AppServ\www\scripts\e-casting.php on line 15 :/ 15. rindiņa: return preg_grep($content,"/([a-z]+)/"); Link to comment Share on other sites More sharing options...
Aleksejs Posted April 29, 2010 Report Share Posted April 29, 2010 ne to grepu biju domājis. Link to comment Share on other sites More sharing options...
Aleksejs Posted April 29, 2010 Report Share Posted April 29, 2010 Lieto vienkārši preg_mach() un skaties, kas salicies rezultāta masīvā http://lv.php.net/manual/en/function.preg-match-all.php Link to comment Share on other sites More sharing options...
emsy Posted April 29, 2010 Author Report Share Posted April 29, 2010 Viss gatavs, paldies :) Link to comment Share on other sites More sharing options...
Recommended Posts