RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. Doug Vanderweide
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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: cspathpa@gmail.com
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})$


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials