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

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

php - Time zone issue -

iphone - Using nested NSDictionary with Picker -