| 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 |
|
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}$