Global replace of boundaries not handled properly

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      Global replace of boundaries does not seem to be handled properly. For example, for:

      '1234567'.replace(/\B(?=(\d{3})+(?!\d))/g, ',')

      I would expect:

      1,234,567

      but Nashorn reports

      1,,234,,567

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Brett Kail (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: