Alessandro Forte's Blog


Enforce your skill! Read my Blog!
Home Blogs | Home | Login | Contact | My Profile | RSS | About | Cerca

Iban Code RegEx

Today i had write the Regular Expression to match International Bank Account Number (formally IBAN) for Italy country. The regex expression is downloadable from : http://regexlib.com/REDetails.aspx?regexp_id=1621This is the source : IT\d{2}[ ][a-zA-Z]\d{3}[ ]\d{4}[ ]\d{4}[ ]\d{4}[ ]\d{4}[ ]\d{3}|IT\d{2}[a-zA-Z]\d{22} This is the match : IT28 W800 0000 2921 0064 5211 151 | IT28W8000000292100645211151 This is the unmatch : IT28-W800-0000-2921-0064-5211-151 
Leggi tutto il post...
Categoria: Programmazione
mercoledì, 31 gen 2007 Ore. 13.07

Scrivi un commento

Nome:
Blog:
E-Mail:
(l'indirizzo e-mail non verrà pubblicato, consente di essere avvertiti quando arrivano nuovi commenti a questo Post)
Codice:
Corpo:
Cookie:

Commenti

Autore: paoloInviato il: 15 set 2008 - 11.12
perfetto o quasi ;-)
In Italy we have also IT58R0515665250CC0430005210, and with this regex naturally is unmatched
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003