i want to validate user input for alphanumeric characters and for that im using
var regex = /^[a-zA-Z_0-9]$/;
var asdfsfd = $('#vcr_LinkName').val();
if (regex.test(asdfsfd)) {
alert("true");
} else {
alert("false");
}
but it always go into false condition what im doing wrong