Test, validate and match regular expressions
This regex matches Dutch license plates (kenteken) with flexible combinations of letter and digit groups separated by hyphens. It validates segments containing 1-3 characters (either all digits or all letters), requiring at least 6 segments total. The case-insensitive flag allows uppercase or lowercase input for common formats like '12-ABC-34' or 'GP-123-B'.