zohaib khan

zohaib khan

  • NA
  • 26
  • 37.2k

Allow only 20 alphabets and numbers in TextBox using regular expression.

Jun 26 2012 7:11 AM
Hi,

I have TextBox and I want to add validation using regular expression.

I want to allow only 20 alphabet or number in TextBox.

Example [A-Za-z0-9]{1,20}

Any idea about regular expression.


- Thanks

Answers (8)