Getting Regex Boundaries Right: A How-To Guideby@sonarsource

Getting Regex Boundaries Right: A How-To Guide

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Getting Regex Boundaries Right: A How-To Guide
SonarSource HackerNoon profile picture

@sonarsource

SonarSource

We build world-class Code Quality & Security tools: SonarQube, SonarLint and SonarCloud


Receive Stories from @sonarsource

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!