I'm using the following regex ^[\d]{4}[-]?[\d]{6}[-]?[\d]{4}$
to validate 14 numbers as a whole or divided as
4 digits - 6 digits - 4 digits
the following four examples are matching my regex but i want to exclude the last two example.
1111-111111-1111- (valid according to my business logic)12341234561234- (valid according to my business logic)1111-111111111- (I want this to be not valid)1111111111-1111- (I want this to be not valid)