My regular expression (regex) seems to be incorrect:
var domain = "google\.com\.br";
var reEmail = new RegExp("^([A-Za-z0-9_\-\.])+\@" + domain + "$");
I am trying to use this regex to validate an email address. Here is an example:
reEmail.test("<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b2824253f2a283f0b2c24242c272e65282426652939">[email protected]</a>");
However, I keep encountering the following error message:
The range specified in the character class is out of order