Judge whether the input is a string composed of 0-9 / A-Z / A-Z

From , 3 Years ago, written in JavaScript, viewed 90 times.
URL https://pastebin.vip/view/a385d7d1
  1. // 判断输入是否是一个由 0-9 / A-Z / a-z 组成的字符串
  2. function isalphanumber(str){
  3.         var result=str.match(/^[a-zA-Z0-9]+$/);
  4.         if(result==null) return false;
  5.         return true;
  6. }

Reply to "Judge whether the input is a string composed of 0-9 / A-Z / A-Z"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website