S5869 does not report overlaps involving escaped character classes, such as the following:
Pattern.compile("[\\w\\d]"); // Noncompliant because \\d is already included in \\w Pattern.compile("[\\wa-z]"); // Noncompliant because a-z is already included in \\w
- contributes to
-
MMF-2182 Help Java developers writing regexp running fast, with the correct amount of resources and really doing what developers intended
-
- Resolved
-
- is related to
-
RSPEC-5869 Character classes in regular expressions should not contain the same character twice
- Active