United States Banking Institution Account Number Regular Expression?

前端 未结 8 1701
星月不相逢
星月不相逢 2020-12-29 18:25

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 reser

8条回答
  •  爱一瞬间的悲伤
    2020-12-29 18:55

    Don't you mean International Bank Account Number? If yes, this is a regex for IBAN (all IBANs):

    [a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}([a-zA-Z0-9]?){0,16}
    

    UPDATE: Actually, according to Wikipedia: Banks in the United States do not provide IBAN format account numbers. Any adoption of the IBAN standard by U.S. banks would likely be initiated by ANSI ASC X9, the U.S. financial services standards development organization but to date it has not done so. Hence payments to U.S. bank accounts from outside the U.S. are prone to errors of routing.

提交回复
热议问题