"[A-Za-z1-9][A-Za-z0-9]*"
<script type="text/javascript"> function validate() { var name = document.getElementById("name").value; var pattern = /^[A-Za-z0-9 ]{3,20}$/; if (pattern.test(name)) { alert(name +" has alphanumeric value"); return true; } else { alert("Name is not valid.Please input alphanumeric value!"); return false; } } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)