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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(\d{3}|\d{4})[-](\d{5})$
Description
Canadian Branch-Transit number test. The branch number must be 3 or 4 didgits then '-' then five didgets.
Matches
654-45654 | 5544-65486
Non-Matches
455645564 | 44-55545 | 55455-54565
Author Rating: Not yet rated. Brendon Frater
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: A little more concise
Name: Michael Ash
Date: 6/16/2004 10:16:19 AM
Comment:
You also could have written the expression like this ^\d{3,4}-\d{5}$


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