Preg_replace ile PHP sorun

0 Cevap php

i've created a function to get plain text from HTML by striping out JavaScript , CSS , HTML tags etc. for that i've relied upon PHP's preg_replace function to remove certain patterns. The webpages are already stored on hard disk so i'm taking source code from disk. The function is working properly for source code from single files however if i append the source code of multiple files and pass it to my function then preg_replace function fails and returns FALSE . I tried get_last_error but nothing was reported. I'm also trimming the source code before concatinating (to remove EOFs).

Linux aksine Windows üzerinde hiçbir grep olduğundan da düzenli ifadeler Windows üzerinde nasıl uygulandığını söyle lütfen.

0 Cevap