Title |
Test
Find
UK Bank Sort Code
|
Expression |
^(\d){2}-(\d){2}-(\d){2}$ |
Description |
Validates the format of a UK bank sort code. |
Matches |
20-40-36 | 50-25-48 | 45-85-66 |
Non-Matches |
204036 | 2564584 | 444-58-54 | 45/45/85 |
Author |
Rating:
Not yet rated.
Matthew Harris
|
Source |
|
Your Rating |
|
Title: Matches 00-00-00
Name: Jacobo
Date: 6/6/2019 11:05:42 AM
Comment:
00-00-00 shouldn't be matching as a valid sort code
Title: Dr
Name: K
Date: 5/20/2012 5:29:12 AM
Comment:
Thanks! We use a sort code without the dashes in our object model, maybe having an OR in the regexp for that woudl be good..