we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "javascript regex not in a set of characters"
Pablo
28 Jan 2018
1// Regex - Any character not in a set of characters
2let notBinary = /[^01]/;
3console.log(notBinary.test("1100100010100110"));// false
4console.log(notBinary.test("1100100010200110")); // true