We have a text box that accepts an e-mail address separated by a comma. Regular expression
^ (\ w + ([- +.] \ w +) * @ \ w + ([-.] \ w +) * \. \ w + ([-.] \ w +) * \ s * [,]? \ b) * $.
However, now I can not add a length check to this expression. Each email address must be 150 characters or less. I tried
^ ((\ w + ([- +.] \ w +) * @ \ w + ([-.] \ w +) * \. \ w + ([-.] \ w +)) {1,150} \ s * [,]? \ b) * $.
But that will not work. Can you please change the regular expression so that it also performs this check.
source
share