Can someone help me build a regex that can check four blocks containing text and numbers separated by hyphens?
I'm trying the following:
/([a-z0-9]{4,10})-([a-z0-9]{4,10})-([a-z0-9]{4,10})-([a-z0-9]{4,10})/
It works for: 12345-1234-1b3456-12c4567e910
and for abc1-ab2de-ab4def-abcdef0
But it's also working for: 12345-1234-1b3456-1234567891011
I need the regex to be invalid when this outside any of the 4 blocks (minimum 4 and maximum 10).