Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4395

Make email validator regex comply with RFC 6531

    Details

      Description

      This is the regex for email validation in Struts:

      \\b^['_a-z0-9-\\+]+(\\.['_a-z0-9-\\+]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)\*
      \.([a-z]{2}|aero|arpa|asia|biz|com|coop|edu|gov|info|int|jobs|mil|mobi|
      museum|name|nato|net|org|pro|tel|travel|xxx)$\\b
      

      This doesn't allow special characters (e.g. àéí, äëö,...).

      However, International characters above U+007F are permitted by RFC 6531

      Because some mail servers seem to follow this standard, regex should be improved to allow email addresses valid according to this standard.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wild_oscar Miguel Almeida
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: