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
/
\(\d+?\)(?=\(\d{4}\)$)
/
gm
Input 1
New
Amount of Apples(1)(1234) Amount of Pears(2)(2345) (2)Amount of Bananas(2344) Amount of Oranges(Green)(3455)
Substitution
Amount of Apples(1)(1234) Amount of Pears(2)(2345) (2)Amount of Bananas(2344) Amount of Oranges(Green)(3455)