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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b108
    • generic
    • generic

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

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

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

              Created:
              Updated:
              Resolved: