0

After a quick research here and here, the solutions didn't work for my project.

Here is the regex:

"^([A-Za-z0-9\._%-]+@[A-Za-z0-9\.-]+\.[A-Za-z]{2,4}+[;]?)(?:[;][A-Za-z0-9\._%-]+@[A-Za-z0-9\.-]+\.[A-Za-z]{2,4}+[;]?)*$|^$"

And here is an error that firebug fires at me whenever I reach email validation step (see regex above):

invalid quantifier
hasformat()jquery...tion.js (line 211)
pattern = "\^([A-Za-z0-9\._%-]+@[A...-Za-z]{2,4}+[;]?)*$|^$\"
Community
  • 1
  • 1
Jackie Chan
  • 2,654
  • 6
  • 35
  • 70

1 Answers1

2

I think it's the + after the two sets of {2,4}

removed like below gets it running but may not be what you need for the pattern

^([A-Za-z0-9\._%-]+@[A-Za-z0-9\.-]+\.[A-Za-z]{2,4}[;]?)(?:[;][A-Za-z0-9\._%-]+@[A-Za-z0-9\.-]+\.[A-Za-z]{2,4}[;]?)*$|^$

Robbie
  • 18,750
  • 4
  • 41
  • 45