Author: karang | Posted on: 10/2/2008 4:03:40 AM | Views : 571

Hi
 
I am using regular expressions for validating Name i.e. only Alphabets and Spaces are allowed.

 
I am using this
 
^[a-zA-Z]+$
 
This expression validates for alphabets only.
For white spaces I have changed the expression to  
^[a-zA-Z] \\s+$
 
But it is not validating properly.
 
Please tell me where I am wrong.
 
Kindly advice
Regards
Karan
 
 
 
 
 
...

Go to the complete details ...