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

Regex /[^\[]/ doesn't match

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None
    • b108
    • generic
    • generic

    Description

      Test case, I was expecting "[M]", getting null.

      var x = "[M]".match( /(\[[^\[]*\])/);
      print.log(x);

      Attachments

        Activity

          People

            hannesw Hannes Wallnoefer
            jfdenise Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: