Getting Regex Boundaries Right: A How-To Guide

Written by sonarsource | Published 2021/02/23
Tech Story Tags: java | regex | bug | complex | programming | software-development | regular-expressions | good-company

TLDR 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.via the TL;DR App

no story

Written by sonarsource | We build world-class Code Quality & Security tools: SonarQube, SonarLint and SonarCloud
Published by HackerNoon on 2021/02/23