Displaying page
of
pages;
Items to
Title |
Test
Details
UK Company Number
|
Expression |
^(([0-9]{2})|([a-zA-Z][0-9])|([a-zA-Z]{2}))[0-9]{6}$
|
Description |
Matches a UK company number. According to HMRC these must have 8 digits, of which up to the first two may be an alpha prefix. This doesn't test for validity of the prefix.
|
Matches |
12345678, OC123456, SC058132, R7654321
|
Non-Matches |
1234567, AB1324567
|
Author |
Rating:
Not yet rated.
Graham Harper
|
Title |
Test
Details
UK Company Number
|
Expression |
^([0-9]{8})|(R[0-9]{7})|((AC|FC|GE|GN|GS|IC|IP|LP|NA|NF|NI|NL|NO|NP|NR|NZ|OC|RC|SA|SC|SF|SI|SL|SO|SP|SR)[0-9]{6})$
|
Description |
Validates a UK company registration number according to the range of prefixes allowed by the HMRC
|
Matches |
OC123456, R1234567, 12345678
|
Non-Matches |
AB123456, A1234567, 1234567
|
Author |
Rating:
Not yet rated.
Graham Harper
|
Displaying page
of
pages;
Items to