📅  最后修改于: 2022-03-11 15:04:10.978000             🧑  作者: Mango
// Regex - Any character not in a set of characters
let notBinary = /[^01]/;
console.log(notBinary.test("1100100010100110"));// false
console.log(notBinary.test("1100100010200110")); // true