I don't know why my regex is incorrect:
var domain = "google.com.br";
var reEmail = new RegExp("^([A-Za-z0-9_-.])+@" + domain + "$");
I need this to validate an email. Example below: reEmail.test("[email protected]");
I get this error:
Range out of order in character class
See Question&Answers more detail:os