Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

username validation in javascript

function validateUserName(username){
  var usernameRegex = /^[a-zA-Z0-9]+$/;
  return usernameRegex.test(username);
}
 
PREVIOUS NEXT
Tagged: #username #validation #javascript
ADD COMMENT
Topic
Name
2+7 =