' . $processed . ' | '; print ''; print ' | ' . $filename . ' | '; print ''; print ' | '; $fileContent = file_get_contents($filename); $count = null; $replacedContent = preg_replace($regexExpr, $replacement, $fileContent, -1, $count); if ($count) { if (FALSE !== file_put_contents($filename, $replacedContent)) { print 'Ok'; $good++; } else { print 'Error'; $error++; } } else { print 'No matches'; $no_maches++; } print ' | '; print '