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
SYSTEM
I've tried some solutions without success.
My idea was to search the -\d\d 2 times but not 3 times
(?!\-\d+)(\-\d+){2}$
or
[^(\-\d+)](\-\d+){2}$
Could you help me?