Hey all,
I have on a linux box and in Mozilla..my script is just fine..In IE..it bombs...I am gettting this error:
unexpected quantifier
Code=0
Here is my regex's....
var re = new RegExp ('_', 'gi');
var emailcheck=/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/
var verify=/^\d{10}/
var verifybday=/^\d{2}\-\d{2}\-\d{4}+$/
var verifyphones=/^\d{3}\-\d{3}\-\d{4}+$/
and here is how I test against them...
if((document.form.email)&&(!emailcheck.test(document.form.email.value))){
msg+="Valid Email\n";
Regpass=false;
}
there are a couple of IF statements..nothing complicated other than the regexs...but I am getting this error..anyone know why????
please advise.......kinda urgent
I have on a linux box and in Mozilla..my script is just fine..In IE..it bombs...I am gettting this error:
unexpected quantifier
Code=0
Here is my regex's....
var re = new RegExp ('_', 'gi');
var emailcheck=/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/
var verify=/^\d{10}/
var verifybday=/^\d{2}\-\d{2}\-\d{4}+$/
var verifyphones=/^\d{3}\-\d{3}\-\d{4}+$/
and here is how I test against them...
if((document.form.email)&&(!emailcheck.test(document.form.email.value))){
msg+="Valid Email\n";
Regpass=false;
}
there are a couple of IF statements..nothing complicated other than the regexs...but I am getting this error..anyone know why????
please advise.......kinda urgent
Comment