Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

United States Banking Institution Account Number Regular Expression?

Tags:

regex

I have been tasked to "verify" the length of a U.S. Banking Institution ACCOUNT NUMBER for a web app I'm developing. I cannot find anything through SOF, Google, Fed reserve etc that outlines an account number standard length that we have in the United States. For the record I believe this is futile.

If someone could point me to any official documentation on the web, or has an example regular expression, or knows if there is a standard that exists, I would appreciate it greatly.

ADDED:

What would interest me even more since the response is overwhelming that their is no standard....has anyone ever run into a bank account number that is not completely "numeric"\

ADDED:

Thanks to everyone and their responses. Due to having no standard in the US, we are not going to enforce a length check, and we are going to store the number as a varchar due to the fact that it may be possible that a bank may assign alpha characters in their account numbers. Seems 99.999999% unrealistic in our view, but no standard means we will accept alpha characters and run the check on the account number to verify if it works or not. Thanks again all!

like image 846
Boom Shaka Laka Avatar asked Oct 08 '09 20:10

Boom Shaka Laka


People also ask

What is US financial institution account number?

The routing number is the nine-digit number printed in the bottom left corner of each check. Your specific account number (usually 10 to 12 digits) is the second set of numbers printed on the bottom of your checks.

How does account number look like in USA?

Usually, an account number will be 10-12 digits long, but its length could vary from one bank to another. Sometimes, the account number and check number are reversed, so your account number will be found on the right side of the bottom of your check, as opposed to in the middle.

Are all US bank account numbers 10 digits?

US bank accounts can be from 6 to 17 digits.

Is there a standard number of digits in a bank account number?

While the routing number identifies the financial institution's name, the account number—usually between eight and 12 digits—identifies your account.


2 Answers

There is no standard for US banks' account numbers.

IBAN is not used in the US.

There is a limit for ACH transactions (4-17 digits), but not all transactions have to be ACH.

And yes, the US banking system is antiquated.

I'm looking at a DW (Data Warehouse) of 38 different systems at a bank and the length of account varies widely depending on the product. Several of the systems have alphabetic characters in the account numbers. This is probably irrelevant since they are special types of customer accounts like brokerage accounts and other things which aren't accessible through ACH - you need to specify what kind of account you're interested in. If you restrict yourself to accounts which you can get to through ACH, you can simply restrict to numeric digits.

You can get a lot more information about ACH at: http://www.nacha.org/

like image 118
Cade Roux Avatar answered Sep 22 '22 11:09

Cade Roux


Good luck with that, because you can't.

Banks are free to use just about anything as an account number. I think the only validation you can do is whether or not they're numeric (as they all are).

The most common length for bank account numbers is 9, 12, or 10 digits. Although they range from 4 to 17 digits long. I have a large database of valid numbers and there's no pattern that I can see to the "account number".

A "routing number" defines the bank (pretty much) but even within a particular routing number, the account numbers can be of different lengths.

This is why payroll services often require an extra day (or two) before initiating Direct Deposit in order to "prenote" the account (validate it by performing a no-op ACH transaction) because you really can't verify it otherwise.

like image 29
Clinton Pierce Avatar answered Sep 21 '22 11:09

Clinton Pierce