GeeCON Prague 2014*
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
Author

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
Sheriff

Joined: Oct 13, 2005
Posts: 39053
    
  23
That sounds like something you can easily design a regular expression for.
 
GeeCON Prague 2014
 
subject: Regarding validation of field