Regex dla liczb i liter
let regex = /[^A-Za-z0-9]+/
Maxime Laplace
let regex = /[^A-Za-z0-9]+/
var re = new RegExp('^[a-zA-Z]{2}[0-9]{2}$');
//check if have "i" or "o"
/i|o/.test(var)