In my code, I've something like this to check if the new username entered is correct or not
private static final String regularExpression = "^[aA-zZ]\\w{7,29}$";
but while providing username with _ (underscore) like _vaibhav27, the regular expression is taking it as valid entry. I want that entry to be invalid. I tried several changes, nothing worked. Can you please help?