Hello,
I want to remove all the comments in a file with ereg_place
// comment
those two work well:
$string = ereg_replace("[\r\n]{1}", "", $string);
$string = ereg_replace("[\/]{2}", "", $string);
But combine those two doesn't work:
$string = ereg_replace("[\/]{2}.*[\r\n]{1}", "", $string);
What's wrong with my regular expression?