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

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

XMLWordPrintable

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

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

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

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

              Created:
              Updated:
              Resolved: