validate-kaike-js
Version:
A small validation library
22 lines (21 loc) • 1 kB
JavaScript
export const ibanRegexPatterns = [
{ country: "AF", regex: /^AF\d{2}\d{16}$/ },
{ country: "AO", regex: /^AO\d{23}$/ },
{ country: "AR", regex: /^AR\d{2}\d{20}$/ },
{ country: "AU", regex: /^AU\d{2}\d{6}\d{10}$/ },
{ country: "BR", regex: /^BR\d{25}[A-Z]{1}[A-Z0-9]{1}$/ },
{ country: "CA", regex: /^CA\d{2}\d{18}$/ },
{ country: "CN", regex: /^CN\d{2}\d{18}$/ },
{ country: "DE", regex: /^DE\d{20}$/ },
{ country: "ES", regex: /^ES\d{22}$/ },
{ country: "FR", regex: /^FR\d{12}[A-Z0-9]{11}\d{2}$/ },
{ country: "GB", regex: /^GB\d{2}[A-Z]{4}\d{14}$/ },
{ country: "IN", regex: /^IN\d{2}\d{18}$/ },
{ country: "IT", regex: /^IT\d{2}[A-Z]\d{10}[A-Z0-9]{12}$/ },
{ country: "JP", regex: /^JP\d{2}\d{18}$/ },
{ country: "MX", regex: /^MX\d{2}\d{18}$/ },
{ country: "PT", regex: /^PT\d{23}$/ },
{ country: "RU", regex: /^RU\d{2}\d{20}$/ },
{ country: "US", regex: /^US\d{2}\d{18}$/ },
{ country: "ZA", regex: /^ZA\d{2}\d{18}$/ },
];