Regex to check the first character is in uppercase and allow only alphanumeric,not allow the special charcter. Thank you Advance
function checkName(val) {
var alpha = document.getElementById(val).value;
var filter = /^[a-zA-Z0-9 ]*$/;
if (!filter.test(alpha)) {
alert("Please Enter Alphanumeric Only");
return false;
}
return true;
}
i Used This its working properly for checking alphanumeric but for first character uppercase its not working where can i modify my regex expression or any solution.