aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes string validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "string validation" Watch "string validation" New topic

string validation

prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
i have a textfield of size 2 characters. this field should only accept only alphabets but not numbers. we have isNumeric that will allow a textfield to have only numbers. do we have any function that will allow only alphabets

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
make a simple reg exp that checks for letters.

I agree. Here's the link:
subject: string validation