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+){2}$
"
gm
Input 1
1
New
i try to regex match string like these examples: NetTAP IPX C-4-16 SmartTAP DP6409 Dual E1-11-16 but not these ones: NetTAP IPX C-4-16-0 SmartTAP DP6409 Dual E1-11-16-0
Extraction
i try to regex match string like these examples: NetTAP IPX C-4-16 SmartTAP DP6409 Dual E1-11-16 but not these ones: NetTAP IPX C-4-16-0 SmartTAP DP6409 Dual E1-11-16-0