判断二进制数能否被3整除正则表达式:
var reg = /^0*(1(01*0)*10*)*$/
判断二进制数能否被5整除正则表达式: let reg = /^(0|1(10)*(0|11)(01*01|01*00(10)*(0|11))*1)*$/