Regular Expressions 101

Community Patterns

123...6

Community Library Entry

1

Regular Expression
.NET 7.0 (C#)

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

Description

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

Submitted by Paw Jershauge - 8 months ago