Too Long; Didn't Read
Regular expressions pack a lot of power into terse little packages. This terseness often makes them hard to read and understand for your teammates, for readers of your code, and even for your future self. In order to detect such problems, we offer a rule ( java:S5996 - Regex boundaries should not be used in a way that can never be matched ) This rule can help you find regular expressions that are too complex and maintainability in Java code. It can also be used to identify patterns that can't match anything at all.