Error: Non-ECMAScript regexes are not currently supported.
Posted: Tue Apr 25, 2017 4:24 am
Hi Team,
while migrating below code, I got error - Error: Non-ECMAScript regexes are not currently supported. in Java script.
Is it known issue?
If yes, is there alternatives to validate email.
Thanks.
while migrating below code, I got error - Error: Non-ECMAScript regexes are not currently supported. in Java script.
Code: Select all
string patternLenient = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";
System.Text.RegularExpressions.Regex reLenient = new System.Text.RegularExpressions.Regex(patternLenient);
//Validate Emailid
if (!reLenient.IsMatch(TxtEmail.Text.Trim()))
{
// code
}
Is it known issue?
If yes, is there alternatives to validate email.
Thanks.