Check length and permitted characters.
Initialising algorithm engine for Identifier Format Validator...
How Identifier Format Validator Works?
The Identifier Format Validator checks the shape of a code before running its checksum. It checks length, allowed characters and any characters that must occupy fixed positions.
- 1Select the identifier scheme.
- 2Check the length against the scheme's fixed or allowed lengths.
- 3Check each character against the allowed set for its position.
- 4Check fixed parts such as prefixes and separators.
- 5Report the first rule that fails, or pass the identifier to checksum validation.
Identifier Format Validator Formula
The format rule is valid_format ⇔ input matches the scheme's regular expression.
valid_format = regex_scheme.test(input) valid = valid_format ∧ valid_checksum
regex_schemeencodes length and character rules.
Length = 17 → pass Position 17 = O → fail (letters I, O, Q not allowed) Checksum not run
Identifier Format Validator Conversion Table
The format validator table lists length rules, character sets, and regular expressions for 8 schemes.
| Scheme | Length | Allowed characters | Regular expression |
|---|---|---|---|
| EAN-13 | 13 | 0–9 | ^\d{13}$ |
| IBAN | 15–34 | A–Z, 0–9 | ^[A-Z]{2}\d{2}[A-Z0-9]{11,30}$ |
| VIN | 17 | A–Z except I, O, Q; 0–9 | ^[A-HJ-NPR-Z0-9]{17}$ |
| ISBN-10 | 10 | 0–9, X last | ^\d{9}[\dX]$ |
| ORCID iD | 19 with hyphens | 0–9, X last | ^\d{4}-\d{4}-\d{4}-\d{3}[\dX]$ |
| ISO 6346 | 11 | 4 letters + 7 digits | ^[A-Z]{3}[UJZ]\d{7}$ |
| Spanish NIF | 9 | 8 digits + letter | ^\d{8}[A-HJ-NP-TV-Z]$ |
| LEI | 20 | A–Z, 0–9 | ^[A-Z0-9]{18}\d{2}$ |
What is Identifier Format Validator?
An Identifier Format Validator is a tool that checks whether an identifier has the right length and characters for its scheme. Format checks run first, and checksum checks run second.
Format errors (wrong length, forbidden letters) explain most rejected inputs and give clearer messages than a checksum failure.
What are the uses of Identifier Format Validator?
There are 3 main uses of the Identifier Format Validator, including form input rules, import screening, and regex testing.
- Form input rules: Developers copy tested regular expressions into forms.
- Import screening: Data teams reject badly formatted rows early.
- Regex testing: Engineers confirm patterns against real examples.