Trying to remove C-style comments and their delimiters. Seems straightforward but I'm spinning wheels. This is what I am trying:

$code =~ s/\/\*.+\*\//g;

However, the error I get is:

Substitution replacement not terminated

What to do?

Edit
Report