Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postcode input mask

Status
Not open for further replies.

madams

Programmer
May 2, 2002
8
GB
I need to write a bit of validation that will accept UK postoceds entered into a text field.

i need to accept (including a space) only the 4 cases below and display an alertbox if there isn't a match to the mask.

if x = char
and 0 = digit

the four cases are

x0 0xx
x00 0xx
xx0 0xx
xx00 0xx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top