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)]*(\d{5,6})[^\d)]*\)
/
gm
Input 1
1
New
1110383 Project something 11/22/2019 (WSO) (89021-design) John Doe (John.Doe@company22.com)", "1110383 Project something 11/22/2019 ASP (890212-wso) John Doe (John.Doe@company22.com) Other Stuff", "1110383 Project something SD (890212) John Doe (John.Doe@company22.com)
Substitution
$1$2($3)
1110383 Project something 11/22/2019 (WSO) (89021-design) John Doe (John.Doe@company22.com)", "1110383 Project something 11/22/2019 ASP (890212-wso) John Doe (John.Doe@company22.com) Other Stuff", "1110383 Project something SD (890212) John Doe (John.Doe@company22.com)