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 -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -