Regex to remove single-line SQL comments (--)

前端 未结 7 1069
悲哀的现实
悲哀的现实 2021-01-15 08:52

Question:

Can anybody give me a working regex expression (C#/VB.NET) that can remove single line comments from a SQL statement ?

I mean these comments:

7条回答
提交回复
热议问题