Se ha detectado un '/' inesperado
pcexp.push (/^(bfpo)(\s*)(c\/o\s*[0-9]{1,3})$/i);
este es el codigo:
Código:
Como lo puedo sustituir? pcexp.push (new RegExp ("^(" + alpha1 + "{1}" + alpha2 + "?[0-9]{1,2})(\\s*)([0-9]{1}" + alpha5 + "{2})$","i")); pcexp.push (new RegExp ("^(" + alpha1 + "{1}[0-9]{1}" + alpha3 + "{1})(\\s*)([0-9]{1}" + alpha5 + "{2})$","i")); pcexp.push (new RegExp ("^(" + alpha1 + "{1}" + alpha2 + "?[0-9]{1}" + alpha4 +"{1})(\\s*)([0-9]{1}" + alpha5 + "{2})$","i")); pcexp.push (/^(GIR)(\s*)(0AA)$/i); pcexp.push (/^(bfpo)(\s*)([0-9]{1,4})$/i); pcexp.push (/^(bfpo)(\s*)(c\/o\s*[0-9]{1,3})$/i);