negated character set javascript all numbers code example
Example: javascript regex not in a set of characters
// Regex - Any character not in a set of characters
let notBinary = /[^01]/;
console.log(notBinary.test("1100100010100110"));// false
console.log(notBinary.test("1100100010200110")); // true