SyntaxFix
Write A Post
Hire A Developer
Questions
Try with this:
public static boolean userNameValidation(String name){ return name.matches("(?i)(^[a-z])((?![? .,'-]$)[ .]?[a-z]){3,24}$"); }