isUserName method

bool isUserName()

Return whether input matches regex of username.

Implementation

bool isUserName() {
  return matches(regexUsername);
}