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
/
(?:^|\[)([^\][]*-v\d[^\][]*)]
/
gm
Input 1
1
[appName1-v10.20.1](https://github.com/appName1/1111), [appName2-v20.15.10](https://github.com/appName2/aaa)] [Package: appName1-v10.20.1](https://github.com/appName1/1111)
Extraction
[appName1-v10.20.1](https://github.com/appName1/1111), [appName2-v20.15.10](https://github.com/appName2/aaa)] [Package: appName1-v10.20.1](https://github.com/appName1/1111)