Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.