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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -