Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I need a regular expression which would allow characters from 1-5000 in text field including spaces. I am using this regular expression
"^[a-zA-Z0-9#£$&%+*-., !@()\\s]{1,5000}$

It is also not allowing to save exact 5000 but slightly more than 4000.
Please help
Posted
Comments
CRDave1988 20-Feb-12 7:03am    
Not Getting. Do u want to check length? or something else can u give some good example?

1 solution

This article from codeproject will help you

Check maxlength of multiline textbox in javascript[^]

Accept the answer if it has helped you. And Vote it
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900