I have a C# string object that contains the code of a generic method, preceded by some standard C-Style multi-line comments.
I figured I could use System.Text.RegularExpressions
to remove the comment block, but I can seem to be able to get it to work.
I tried:
code = Regex.Replace(code,@"/*.*?*/","");
Can I be pointed in the right direction?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…