regex any chara code example
Example 1: regex char or char
//check if have "i" or "o"
/i|o/.test(var)
Example 2: 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