Regular Expression ...
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?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AdministratorRank #675 · 3.6K reputationPosted Apr 11, 2003, 4:10 AM EDT
AdministratorRank #675 · 3.6K reputationPosted Apr 11, 2003, 4:21 AM EDT
AdministratorRank #675 · 3.6K reputationPosted Apr 14, 2003, 1:10 PM EDT