File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 36478
    
  16
That sounds like something you can easily design a regular expression for.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding validation of field
 
Similar Threads
NX: [UrlyBird 1.3.1] how flexible with the data format should we be?
reading a text file that has field positions(without delimiters)and insert into table
Formatting of textfield
How to define custom data type in Schema
Insert arabic data in database through jsp file