regular expression validator
-
Hi, every one I have a text box where i need to fill a name so i have given a regular expression validator for the text box so that user can fill only alphabets. The expression which i gave is [A-Z]*|[a-z]*. when im giving all small letter it is working but if i give a capital letter follwed by small letters it is not working. pls help me
-
Hi, every one I have a text box where i need to fill a name so i have given a regular expression validator for the text box so that user can fill only alphabets. The expression which i gave is [A-Z]*|[a-z]*. when im giving all small letter it is working but if i give a capital letter follwed by small letters it is not working. pls help me
sivaram praveen wrote:
I have a text box where i need to fill a name so i have given a regular expression validator for the text box so that user can fill only alphabets. The expression which i gave is [A-Z]*|[a-z]*. when im giving all small letter it is working but if i give a capital letter follwed by small letters it is not working.
The correct syntax is
[A-Za-z]*
to capture zero or more upper/lower case alpha characters.Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
sivaram praveen wrote:
I have a text box where i need to fill a name so i have given a regular expression validator for the text box so that user can fill only alphabets. The expression which i gave is [A-Z]*|[a-z]*. when im giving all small letter it is working but if i give a capital letter follwed by small letters it is not working.
The correct syntax is
[A-Za-z]*
to capture zero or more upper/lower case alpha characters.Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
Thanx 4 ur reply, it worked