regex - Regular Expression in Java for validating username -
i'm trying username chains in java following rules:
- length >=3
- valid characters: a-z, a-z, 0-9, points, dashes , underscores.
could me regular expression?
try regular expression: ^[a-za-z0-9._-]{3,}$
Comments
Post a Comment