File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Regarding validation of field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Regarding validation of field" Watch "Regarding validation of field" New topic

Regarding validation of field

surya.raaj prakash
Ranch Hand

Joined: Oct 30, 2009
Posts: 76
Hi Friends,

I have one requirement please help me,I have developed one page,it has one field postal code,but this field takes data format like(ex:12345),but my requirement is to take the data format likes 12345-1234 and 1234(it will accept both formats).
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46405
That sounds like something you can easily design a regular expression for.
I agree. Here's the link:
subject: Regarding validation of field
jQuery in Action, 3rd edition