DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15775>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15775 Regex fails for a validation of large string (Email ID) Summary: Regex fails for a validation of large string (Email ID) Product: Regexp Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Other AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I've used regex (using jakarta-regexp-1.2.jar) to validate email address . The code is as follows : String email = "[EMAIL PROTECTED]" String regExp = "^\\w+([_]*[\\-\\.]?[_]*\\w+[_]*)*@\\w+([_]*[\\-\\.]?[_]*\\w+[_] *)*(\\.\\w{1}\\w+)+$"; try { RE reg = new RE(regExp); if(!(reg.match(eMail))) { return false; } } catch(Exception e) { return false; } return true; Now if I pass email address as a big one e.g. abcyz1234567890abcyz1234567890abcyz1234567890@abwxycom which is a wrong one, the system hangs . -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>