"; $content = preg_replace('{ (?<=\*/)([^/\*]+/\*)([^\*/]+\*/) # Add a backslash also at the end hack comment, so the next pass will not touch it }x', '\1\\\\\2', $content); $content = preg_replace('< \s*([@{}:;,]|\)\s|\s\()\s* | # Remove whitespace around separators, but keep space around parentheses. /\*[^*\\\\]*\*+([^/*][^*]*\*+)*/ | # Remove comments that are not CSS hacks. [\n\r] # Remove line breaks. >x', '\1', $content); echo '
'.$content.'
'; } $time_end = microtime(true); $time = $time_end - $time_start; printf("
Done in %.3f sec.", $time);