a-zA-z - Regular expression not allowed!

If your question is about SonarLint in the IntelliJ Platform, VS Code, Visual Studio, or Eclipse, please post it in that sub-category.

Otherwise, please provide:

  • Windows 10
  • VS Code

And a thorough description of the problem / question:

Rule : Character classes in regular expressions should not contain the same character twice (python:S5869)

I want to test both the Uppercase and Lowercase letter , above rule not allowing. Please explain more

my bad - a-z and A-Z(not z)

Hello @kousican, and welcome to the Sonar community!

For clarification, could you provide me with the piece of code that is causing the issue? I am unable to recreate the issue on my side, and therefore it would be a massive help.

Thank you in advance!

Best,
Jeremi

this is closed, it’s my typo Z (not z)

Ok, thank you for the clarification.

Best,
Jérémi