Strip SQL Comments using RegularExpression with C#
Here is the code:
Regex r
= new Regex(@"(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|(–.*)");
textBox2.Text
= r.Replace(textBox1.Text, string.Empty);
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)
Tags: Strip comments












