I have tried lots of regex patterns but I couldn't find a perfect regex which does the following (min. 3 char and max. 30, special characters can be allowed, if all characters are only special characters it should return false).
Expectation:
- "ben":true,(3 char satisfied)
- "ab":false, (3 char not satisfied)
- "ben franklin":true, (space can be allowed)
- "ben_franklin":true, (special char can be allowed)
- "ben@:true, (special char and min 3 char satisfied)
- "%#$":false, (though 3char ,but its all special char)
- "ben#franklin":true,
- "be'franklin":true
- "&%^$@#!*&^":false