public bool IsMatch(string value) { if(value != null) { return regex.IsMatch(value); } return false; }