Anonymous user
Strip block comments: Difference between revisions
m
Fixes PHP solution error
(Added PHP solution) |
m (Fixes PHP solution error) |
||
Line 1,527:
<lang PHP>
function strip_block_comments( $test_string ) {
$pattern = "/^.*?(\K\/\*.*?\*\/)|^.*?(\K\/\*.*?^.*\*\/)$/
return preg_replace( $pattern, '', $test_string );
}
|