pattern accept all keyboard keys with minimum and maximum length in html textbox got the answer... this is the pattern ^[A-Za-z0-9s!#$@%^&*()_+=-`~\][{}|';:/.,?><]