3
Reply

Regular Expression ...

Administrator

Administrator

Apr 11 2003 7:51 AM
1.7k
I would like to validate how many characters a user types in a textbox. So, I'm trying to use a regular expression to do it. And I thought it would be easy. But it isn't I think. \w{9}$ works up to 9 character, but \w{10}$ doesen't wort at all! How can I write an expression to validate let's say a maximum of 40 characters i a textbox?

Answers (3)
Next Recommended Forum