Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8241641

Support Glob expressions in java.util.regex.Pattern

    XMLWordPrintable

    Details

      Description

      A DESCRIPTION OF THE PROBLEM :
      The support for Globs in java.nio.file.PathMatcher is nice, but there are cases where a Glob pattern would be necessary and not depend on the default underlying FileSystem.

      For example, matching host names against a list of non-proxy hosts.

      The JDK offers the sun.nio.fs.Globs to convert a Glob expression into a Regex that can be compiled to a java.util.regex.Pattern. It would be great if that functionality were public (as a new method in java.util.regex.Pattern or a new java.util.regex.Globs class based on the JDK class)


        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: