Go to file
2022-11-01 23:43:37 +01:00
data Fixed åland country code, versioning 2022-11-01 23:43:37 +01:00
composer.json Initial commit 2022-10-30 20:40:04 +01:00
dataset.json Initial commit 2022-10-30 20:40:04 +01:00
README.md Initial commit 2022-10-30 20:40:04 +01:00

Postal Dataset

This is a dataset for noccylabs/dataset holding postal code patterns for validating postal codes.

Datasets

postalcode

Field Type Description
iso string The ISO 2-letter country code
format array Valid formats, see below
regex string Unguarded regex to validate against
  • The value in format is treated literal, except for the following characters: # indicates a number, ? indicates a digit, and * indicates either a number or digit.
  • The regex must be bounded, for example as "<^".$regex."$>". This is done so that multiple expressions can be combined easily.