RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
(\/\*(\s*|.*?)*\*\/)|(--.*)
Description
This pattern will match any multi-line or single line comments in TSQL (Stored Procedures or SPROC's) in MS SQL Server.
Matches
/* My Comment */ | -- A single line comment
Non-Matches
*/ Won't work /* | // Not likely | - uh uh
Author Rating: The rating for this expression. Todd Davis
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials