Pattern: International bank account number

“International bank account number” is one of the patterns that you can select on the Match panel. Use this pattern to match a series of digits that looks like a international bank account number from one or more of the world’s major international bank account issuers.

International Bank Account Number Country Codes

Select the country or countries in which the bank accounts matched this field should be held.

An International Bank Account Number always starts with a two-letter code that identifies the country in which the account is held. The number of digits and possibly letters that can follow the country code differ per country. When the field validation mode is set to “average” or “strict” the generated regex uses a separate alternative for each country that you select so that it can only match account numbers for those countries. When the mode is set to “loose” the regex can be restricted to match the IBAN of a single country. But if you select multiple countries then "loose" mode combines the rules for all the selected countries so that all of those can be matched with a simple regex, but it may cause the regex to match IBANs for other countries depending on how their country code letters and IBAN rules overlap with the selected countries.

You can right-click the list to select or deselect all the countries that are part of the Single European Payments Area (SEPA).

Case Insensitive

Turn on to make the field allow both uppercase and lowercase letters wherever the IBAN allows letters.

Turn off to require the country code to be uppercase. Other letters in the IBAN must either be uppercase or can be mixed case depending on the IBAN rules of the selected countries.

No Spaces

Do not allow any spaces in the bank account number.

If you're going to use your regular expression to validate user input on an order from, you should first use a regex like \W+ to strip out all characters that are not letters or digits. Then validate the remaining digits with the IBAN regex generated with the option “no spaces” selected.

Spaces Group Digits

Allow spaces to group the letters and digits in the bank account number in blocks of 4. International Bank Account Numbers are normally printed this way on bank statements.

This option only works when the field validation mode is set to “average” or “strict”. If you set it to “none” or “loose”, selecting to allow spaces for grouping will allow them anywhere.

Spaces Anywhere

Allow a space between any two characters in the International Bank Account Number, except between the two letters that form the country code at the start of the IBAN.

Use this option to scan for International Bank Account Numbers in documents, if you don't want to miss any numbers that have been obfuscated with extra spaces. It may yield false positives in documents with country codes followed by lists of numbers.

Examples