Fixed register detection regex.