Strip block comments: Difference between revisions

m (→‎{{header|C++}}: cpp tag (C++ does not work))
Line 647:
stripped = string.gsub( str, "/%*.-%*/", "" )
print( stripped )</lang>
 
=={{header|Mathematica}}==
<lang Mathematica>StringReplace[a,"/*"~~Shortest[___]~~"*/" -> ""]
 
->
function subroutine() {
a = b + c ;
}
 
function something() {
}
</lang>
 
 
=={{header|Perl}}==