[Solved] I have built a regex but there is an issue [closed]


/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?:[a-zA-Z0-9]{8,})$/ (click for diagram)

I assumed you meant at least 8 characters. If not, then you need {8} (exactly 8) instead of {8,} (at least 8)

I assumed “no special characters” means only alphabetic and numeric characters, [a-zA-Z0-9] if any other characters are to be allowed, then you can add them here.

Tests here: https://regex101.com/r/QW2qbo/1/

3

solved I have built a regex but there is an issue [closed]