Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-30849

Proposal for using .@.\..+ as the best replacement for regular expression as opposed to the Regex Pattern

    Details

      Description

      Due to potential performance issues, it would be more simple to use

      .@.\..+

      or when escaped for a Java String literal:

      .@.
      ..+

      instead of the the complex Regex Pattern of

      Pattern.compile("[
      w!#$%&'*+/=?^_`

      {|}~-](?:\\.[
      w!#$%&'*
      /=?^_`{|}

      ~-])@(?:\\w(?:\\w-\\w)?
      .)
      \\w(?:\\w-*\\w)?");

      when compiling patches/hotfixes.

        Activity

        Hide
        randy.zhu Randy Zhu (Inactive) added a comment -

        In preparation for Ideation; we are merging New Feature and Improvement tickets into a singular ticket type called “Feature Request”. Additional information to follow soon.

        Show
        randy.zhu Randy Zhu (Inactive) added a comment - In preparation for Ideation; we are merging New Feature and Improvement tickets into a singular ticket type called “Feature Request”. Additional information to follow soon.
        Hide
        edward.gonzales Edward Gonzales (Inactive) added a comment -

        Hello! We are in the process of removing the "General" component all together. Please help us by removing "General" from the component field and applying a relevant component. Thanks in advance for your help. formercomponentgeneral03202013EG

        Show
        edward.gonzales Edward Gonzales (Inactive) added a comment - Hello! We are in the process of removing the "General" component all together. Please help us by removing "General" from the component field and applying a relevant component. Thanks in advance for your help. formercomponentgeneral03202013EG

          People

          • Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            ira.chui Ira Chui
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development

                Subcomponents