57
rated 0 times
[
59]
[
2]
/ answers: 1 / hits: 123349
/ 14 Years ago, thu, january 20, 2011, 12:00:00
I need regex for validating alphanumeric String with length of 3-5 chars. I tried following regex found from the web, but it didn't even catch alphanumerics correctly.
var myRegxp = /^([a-zA-Z0-9_-]+)$/;
if(myRegxp.test(value) == false)
{
return false;
}
More From » regex