hacker rank 23th problem (valid username regex)


23.VALID USERNAME REGEX


class UsernameValidator {
    public static final String regularExpression = "^[[A-Z]|[a-z]][[A-Z]|[a-z]|\\d|[_]]{7,29}$";
Scanner scan =new Scanner(System.in);
}


Compiler Message
Success
Input (stdin)Download
8
Julia
Samantha
Samantha_21
1Samantha
Samantha?10_2A
JuliaZ007
Julia@007
_Julia007
Expected OutputDownload
Invalid
Valid
Valid
Invalid
Invalid
Valid
Invalid
Invalid





Comments

Popular posts from this blog

Amazon Web Services

Hacker Rank all java and python problem solutions

Testing tools for React Apps