Valid Username Regular Expression

  • + 0 comments
    public static final String regularExpression = "^\p{Alpha}\w{7,29}$";

    this regex consits of: 1. one and only one alphabitic charachter at the begining 2. and 7 : 29 alphabitic, numeric or under score charachters.