Jump to content

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}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.