Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: validation for dutch zip code
martijnpeek
Junior Member

Posts: 3
Registered: 8/22/2006
Member Is Offline
posted on 8/22/2006 at 03:02 PM Reply With Quote
validation for dutch zip code


Hi, i am new with the tigra form validator and i am asking my self if is possible to validate a dutch zipcode which can be like the following example : 1111 AA

I am trying it with a customized version of email ( 'zip' : /^[w-.]+.[a-z]{2,4}$/,) but that doesn't work

have anyone an idea what i have to fill to validate both numbers , spaces and characters

thanks for your attention
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/22/2006 at 11:22 PM Reply With Quote

so what exactly is the format? 4 numbers, optional whitespace then two letters?
then regexp is: /^\d{4}\s*\w{2}$/
View User's Profile View All Posts By User U2U Member
martijnpeek
Junior Member

Posts: 3
Registered: 8/22/2006
Member Is Offline
posted on 8/23/2006 at 12:08 AM Reply With Quote

Quote:
Originally posted by tigra
so what exactly is the format? 4 numbers, optional whitespace then two letters?
then regexp is: /^\d{4}\s*\w{2}$/


yes exactly, and it works, so d{4} is for the numbers, s* is for the white space and w{2} is for the letters ??


thanks very much
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/23/2006 at 11:13 AM Reply With Quote

http://www.google.com/search?q=regexp+syntax+reference
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Product Demonstrations Product Demos
Registration Form Validation
Login Form Validation
Free Download Free Download
Product Documentation Documentation
Documenation Page
Change Log
Validators Comparison Table
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004