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
/
(B\d{4}\.\w+)?.
/
gm
Input 1
1
New
Cat dog sheep /* 67 = 123 + monkey12 abcd and then a fish B1234.CAT_DOG and half a loaf of bread /* ON INNER JOIN B3456.BIRD_SHOE 11
Substitution
\1
Cat dog sheep /* 67 = 123 + monkey12 abcd and then a fish B1234.CAT_DOG and half a loaf of bread /* ON INNER JOIN B3456.BIRD_SHOE 11