I need regex for validating alphanumeric String with length of 6 chars. I tried with following regex And done it for allowing alphanumeric chars but don't know how to stop exceeding more than six chars.
var regex = new RegExp("^[a-zA-Z0-9\b]+$");
Fiddle here.