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