-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 21
-
Component/s: core-libs
-
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
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
- csr for
-
JDK-8333782 Improve description of \b matcher in j.u.r.Pattern
-
- Closed
-