public bool IsValidProjectName(string name)
{
if (name == null)
throw new ArgumentNullException("name");
//
// From http://code.google.com/hosting/createProject:
//
// "...project's projectName must consist of a lowercase letter,
// followed by lowercase letters, digits, and dashes,
// with no spaces."
//
return name.Length > 0 && Regex.IsMatch(name, @"^[a-z][a-z0-9-]*$");
}