Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by eloquentjavascript.net #
 
PREVIOUS NEXT
Tagged: #javascript #regex #set #characters
ADD COMMENT
Topic
Name
5+7 =