Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
@"
(?: (?:'[^']*?') | (?<singleline>--[^\n]*) | (?<multiline>(?:\/\*)+?[\w\W]+?(?:\*\/)+) )
"
xg
Input 1
New
USE [Andromeda_Staging] GO /****** Object: StoredProcedure [STAGING].[usp_Loader_Insert837] Script Date: 03/11/2016 08:58:46 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO 343DBDFLD_FSDFK _SDFSDF /* LoadBatchID = 717593, RowCountFrom = 2226942, RowCountTo = 2227669 */ SET NOCOUNT ON SET TRANSACTION ISOLATION LEVEL READ COMMITTED declare @potato varchar(100); set @potato = '--/**/ po''ta--to '; -- single and multi-line inside string, string has escaped single quote set @potato = 'nomal string'; DECLARE @kRo_wsInserted int DECLARE @ReturnValue int DECLARE @Err-32 int DECLARE @RowCount int DECLARE @TotalRows int DECLARE @ReturnCode int DECLARE @RC int DECLARE @FacilityID int DECLARE @NewLine char(2) DECLARE @EntityID int DECLARE @2SQL nvarchar(max) DECLARE @SumOfValidDetailCharges decimal(15,2), @SumOfDetailNonCoveredCharges decimal(15,2) DECLARE @SumOfValidUbCharges decimal(15,2) DECLARE @SumofUBNonCoveredCharges decimal(15,2) DECLARE @TotalFacilityCharges decimal(15