You are viewing a single comment's thread. Return to all comments →
100% testcase pass
public static final String regularExpression = "^[a-zA-Z][a-zA-Z_0-9]{7,29}$";
or
public static final String regularExpression = "^[a-zA-Z]\w{7,29}$";
we can also use "\w" insted of [a-zA-Z_0-9]
Seems like cookies are disabled on this browser, please enable them to open this website
Valid Username Regular Expression
You are viewing a single comment's thread. Return to all comments →
100% testcase pass
public static final String regularExpression = "^[a-zA-Z][a-zA-Z_0-9]{7,29}$";
public static final String regularExpression = "^[a-zA-Z]\w{7,29}$";
we can also use "\w" insted of [a-zA-Z_0-9]