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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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
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: 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..


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