Test, validate and match regular expressions
This regular expression validates a Danish CPR (Det Centrale Personregister) number. It matches an 11-character string (with an optional hyphen) containing a birthdate in DDMMYY format followed by a four-digit sequence number. This pattern is useful for validating personal identification numbers entered into web forms or databases in Denmark. It does not calculate the checksum modulus 11 but ensures the correct structural format.