Valid Username Regular Expression

  • + 4 comments

    Taking your remark, this works fine to me then :

    String pattern = "^[[A-Z]|[a-z]][[A-Z]|[a-z]|\\d|[_]]{7,29}$";