I have the following regex expression being used in a JavaScript function.
regex = /(([a-zA-Z]{3})+([0-9]{12})+(.zip))$/g;
I want the last characters (.zip) also as case insensitive. How to achieve this ? Thanks
I have the following regex expression being used in a JavaScript function.
regex = /(([a-zA-Z]{3})+([0-9]{12})+(.zip))$/g;
I want the last characters (.zip) also as case insensitive. How to achieve this ? Thanks
Use i modifier
var regex = /(([a-z]{3})+([0-9]{12})+(\.zip))$/ig;
var str="abAc772345678989.ZIP";
console.log(regex.test(str))