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

Improve description of \b matcher in j.u.r.Pattern

XMLWordPrintable

    • b03
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Asserts equivalence to the regex "(?:(?<=\w)(?=\W)|(?<=\W)(?=\w))", but this does not match boundaries with the start or the end of the line.
      "\bhello\b" does match "hello", so perhaps the regex "(?:(?<=\w)(?!\w)|(?<!\w)(?=\w))" would be more accurate?


      FREQUENCY : always


            rgiulietti Raffaello Giulietti
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: