regex string of letters code example Example: regex char or char //check if have "i" or "o" /i|o/.test(var)