Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-46

Email Validation doesn't allow '-' in address

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 7354

    Description

      My email address is not classed as valid because it has a '-' in the middle.

      I investigated your code, which looks fine to me. The problem lay in
      RegExp, as it was incorrectly matching against your patterns. I looked at the
      mailing list archives, and it appears that others are having similar
      problems with RegExp.

      So, I've replaced RegExp in your code with Apache ORO's Regular
      Expression handler. I've attached the files here. This has now solved my
      problem for me. It works with Jakarta ORO v2.0.4.

      submitted by "Andy Noble" <andy.noble@data-workshop.com>

      Attachments

        Activity

          People

            Unassigned Unassigned
            dwinterfeldt@apache.org David Winterfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: