Title |
Test
Find
Bank Routing Transit Number (RTN)
|
Expression |
^((0[0-9])|(1[0-2])|(2[1-9])|(3[0-2])|(6[1-9])|(7[0-2])|80)([0-9]{7})$ |
Description |
Ensures a given string matches the basic pattern of a bank routing transit number (RTN), used to identify financial institutions on instruments such as checks. Ensures number is nine digits long and has first two digits that comply with American Bankers Association rules. |
Matches |
614321634, 114000900, 703452098 |
Non-Matches |
1145329, 491212012, banana |
Author |
Rating:
Doug Vanderweide
|
Source |
|
Your Rating |
|
Title: Thank you!
Name: Donald Love
Date: 2/12/2021 5:45:35 PM
Comment:
Thanks so much for this. I suck at regex, so I appreciate just being able to Google this. You're awesome!
Title: das
Name: dsad
Date: 7/13/2018 2:31:20 PM
Comment:
dasd
Title: For valid deposit Accounts
Name: Yadda yadda
Date: 3/3/2016 12:37:27 PM
Comment:
For a stricter regex that excludes numbers such as ones intended for future use or traveler's checks (among others):
((0[1-9])|(1[0-2])|(2[0-9])|(3[0-2]))([0-9]{7})
Title: Thanks
Name: Doug Vanderweide
Date: 8/5/2008 2:10:36 PM
Comment:
I've corrected this expression as noted in previous comment.
Title: Bank Routing Transit Number (correction)
Name: [email protected]
Date: 5/12/2008 2:02:19 PM
Comment:
This expression is actually incorrect. It is missing the ending square brace on the 1st 2-digits check for 1st digit of 2. The corrected expression is '^((0[0-9])|(1[0-2])|(2[1-9])|(3[0-2])|(6[1-9])|(7[0-2])|80)([0-9]{7})$