PPS No (Personal Public Service Number, Irish personal number).
The Personal Public Service number consists of 8 digits. The first seven are numeric and the last is the check character. The number is sometimes be followed by an extra letter that can be a ‘W’, ‘T’ or an ‘X’ and is ignored for the check algorithm.
>>> compact('6433435F')
'6433435F'
>>> is_valid('6433435F')
True
>>> is_valid('6433435E') # incorrect check digit
False
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Checks to see if the number provided is a valid PPS number. This checks the length, formatting and check digit.
Regular expression used to check syntax of PPS numbers.