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

Global replace of boundaries not handled properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • 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

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

              Created:
              Updated:
              Resolved: