category | created | title | updated |
---|---|---|---|
Validator |
2021-04-10 |
Check if a value is a business identifier code |
2021-10-13 |
JavaScript version
const isBIC = (value) => /^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$/.test(value);
TypeScript version
const isBIC = (value: string): boolean => /^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$/.test(value);