Anonymous user
Strip block comments: Difference between revisions
→{{header|Mathematica}}
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}}==
|