The following code shall remove all comments
const string code = @" Option explicit 'comment sub t dim X 'comment with cont _ inuation _ end of comment X = ""It's mine!"" ' inside "" is not a comment designation end sub ";
The result shall be as follows:
Console.WriteLine(Regex(code,<pattern I am asking about>,<null or $1 or what?>))
I expect something working (a little bit) better than my:
Option explicit sub t dim X X = "It's mine!" end sub
|C# WinForm - Unable to get data being retrieved from Active Directory into DataGridView using Multithreading and Delegates||6||89|
|What's the most efficient way to load up a couple of large table in C#?||5||38|
|Interview questions for support of a legacy ASP.NET site||4||39|
|WCF Service Application cannot connect from TCP terminal||1||14|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
25 Experts available now in Live!