| Author |
Validating input BOX Help!!!!!
|
joe kane
Greenhorn
Joined: Jan 26, 2004
Posts: 29
|
|
Hi all, Hi, I was wondering how do you validate an inputbox so that only letters can be entered? I know this validates it so only number can be entered, but what for the other way around? Thanks loads in advance Joe Kane
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
Joe,
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
Joe, Also if you look in the Pattern class in the API, you will find some predefined character classes. Digits are \d and alphanumeric is \w.
|
 |
joe kane
Greenhorn
Joined: Jan 26, 2004
Posts: 29
|
|
|
Thanks for that Jeanne.....
|
 |
 |
|
|
subject: Validating input BOX Help!!!!!
|
|
|