ISPASSPORTNUMBER
Checks whether a string is a valid passport number for a given country.
Syntax
ISPASSPORTNUMBER(text, [countryCode])
Arguments
text
: The string to test.countryCode
(optional): Country code (e.g.,"US"
).
Example
ISPASSPORTNUMBER("123456789", "US") → TRUE
ISPASSPORTNUMBER("A12345678", "US") → FALSE