Regular Expressions 101

Community Patterns

1...56789...467

T-SQL find comments in script

1

Regular Expression
.NET 7.0 (C#)

@"
(?<comment>/\*.*?\*/|\-\-.*?$)
"
gmis

Description

Finds the comments in a t-sql (tsql) script

Submitted by Paw Jershauge - 4 months ago