Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(UNION ALL\D*?historical;)
/
gm
Input 1
1
New
@b = SELECT * FROM @e; UNION ALL SELECT * FROM @c_historical; @r = SELECT * FROM @f; UNION ALL SELECT * FROM @y_historical;
Substitution
\/\*\1\*\/