USERNAME_REGEX

controller.constants.USERNAME_REGEX = '^[a-z0-9](?:[a-z0-9]|-[a-z0-9])*[a-z](?:[a-z0-9]|-[a-z0-9])*$'

Regex matching all valid usernames.