Scenarioo.Model.Docu.Entities.Labels.IsValidLabel C# (CSharp) Method

IsValidLabel() public static method

Validates a label for validity. A label must only contain letters, numbers and/or '_', '-'
public static IsValidLabel ( string label ) : bool
label string
return bool
        public static bool IsValidLabel(string label)
        {
            return Regex.IsMatch(label, "^[ a-zA-Z0-9_-]+$");
        }