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
/
=\h*(?|"([^"@]*@[^"@]+)"|'([^@']*@[^'@]*)')
/
gm
Input 1
1
New
...sql statements -- only this quoted string would match select @sql = "select * from Users where id = @id " select @sql ='select * from Users where id = @id ' -- other statements that wouldn't match because not in a pair of quotes if ltrim(isnull(@stat,'')) <> '' and @stat <> '""' begin select @sql = @sql + " and Stat in ("+@stat+")" end if isnull(@atype,'') <> '' begin select @sql = @sql + " and Type in ("+@atype+")" end ...more sql statements