Flight designator

Airline flight designators comprise two characters (letter-letter, letter-digit or digit-letter), followed by a flight number from 1 to 9999.

The treatment of leading zeros in the flight number varies by context: tickets omit leading zeros, e.g. AC861, whereas IT systems usually include them, e.g. AC0861. The definition of naxp encoding means that these two different formats result in different encoded values, and therefore only one of these forms can be canonical.

The approach taken here is that the version including leading zeros is the canonical format, which has the incidental benefit that encoded values sort by flight number within an airline.

Tip Click on a (pink) naxp to load it, together with examples, onto the interactive page so you can test it for yourself.

Variant naxp Notes
default (\A\A|\A\9|\9\A) #[0!0!0!1-9999] Accepts a designator with or without leading zeros, e.g. AC0861 or AC861.
Prints with leading zeros, e.g. AC0861.
strict (\A\A|\A\9|\9\A) #[0001-9999] Four digits are always required, so AC861 is treated as invalid.