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
/
(?|([a-zA-Z0-9]+)\(([a-zA-Z\s]+)\)|\(([a-zA-Z\s]+)\)([a-zA-Z0-9]+))
/
g
Input 1
1
New
(Weather) is good. // not need to mark this beacuase this word konown word Weath(er) is good. // mark Weath(er is good). // mark Weather (is) (good). My name is Rah(eel) // mark Best pro(duct) // mark (Weather is good) // not need to mark this beacuase this word konown word we(ather) (weath)er is good. // i want to mark this word (weath)er // i want to mark this word weather(is fine)